siros123
AEAsh Elixir
•Created by siros123 on 3/17/2023 in #support
key :current_user not found error in ash_authentication_phoenix tutorial sample home.html.heex
Hello, I have progressed with implementing https://ash-hq.org/docs/guides/ash_authentication_phoenix/latest/getting-started-with-ash-authentication-phoenix but unfortunately I get a key :current_user not found error when starting the server as in https://ash-hq.org/docs/guides/ash_authentication_phoenix/latest/getting-started-with-ash-authentication-phoenix#start-phoenix
I have double checked the generated routes, the contents of the AuthController and the associated auth_html.ex and failure.html.heex. I can create a new user through localhost:4000/sign-in but then after I still get the same error. It seems the current_user simply does not get assigned. How can I debug this?
31 replies
AEAsh Elixir
•Created by siros123 on 3/16/2023 in #support
How to solve "(Jason.DecodeError)" in Ash Authentication Phoenix tutorial
Hi everyone, I am going through the Ash Authentication Tutorial but I'm stuck on an obtuse error that gives me few clues where to debug it:
It looks like there is an error with a JSON file somewhere but I cannot tell which JSON file it should be and/or how I could find out. Can anyone give any pointers as to how to debug this?
Sorry, I am quite a beginner in Elixir/Phoenix/Ash so I apologize if this has quite an obvious solution. I would just like to understand where to start fixing this.
10 replies