-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After redirecting from consent -- runtime error: invalid memory address or nil pointer dereference #988
Comments
After re-checking my consent code I noticed this crash was triggered because I forgot to add the following two fields to the consent payload: remember and remember_for Maybe some payload validation (and logging) could come in handy here since it is quite easy to overlook things like this in custom endpoints... |
Huh, that's interesting, it seems like the nil pointer is coming from the session object. I'll investigate. |
Would it be possible for you to provide your login+consent app as a fully functioning app? I'd like to use it to reproduce the issue. |
Oh I think I know what the issue is. Because you omitted |
This resolves a panic when the session is not available. Closes #988 Signed-off-by: arekkas <aeneas@ory.am>
This resolves a panic when the session is not available. Closes #988 Signed-off-by: arekkas <aeneas@ory.am>
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Hydra crashes after accepting consent and redirecting
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
What is the expected behavior?
Hydra doesn't crash after redirecting
Which version of the software is affected?
At least 1.0.0-beta8
Log output
The text was updated successfully, but these errors were encountered: