-
Notifications
You must be signed in to change notification settings - Fork 979
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
[Bug?]: Context is empty #11576
Comments
@razzeee Thanks for reporting! This looks so strange. I'm tagging @Josh-Walker-GM and @Tobbe to see if they have any ideas or have seen anything similar? |
Nothing that comes to mind right now I'm afraid |
Any more details? That code snippet is within dbAuth itself, which you normally don’t have access to within an app. Where are you accessing |
I figured out how to get it to work again, but I'm not 100% sure, which part the actual fix was We have had a docker setup since before it was available with redwood
If I pin it like this, it starts working again:
The prisma pin might actually not be needed, it started to work, after pinning the cli (we can probably pin something newer) |
@razzeee, can you provide a small repo with a reproduction of this issue? And I echo @cannikin's question — where are you attempting to access context? The only time I've seen context be unexpectedly empty is when experiencing cookie issues, though without more information it's tough to know what the issue could be. |
What's not working?
Context is
{}
when using it similar toredwood/packages/auth-providers/dbAuth/setup/src/templates/api/lib/auth.ts.template
Line 49 in 2b74931
The interesting this is, that we're still on redwood 7 and it seemed to break for no reason. I was guessing a dependency update, but wasn't able to pinpoint it so far.
It also seems to be fine in dev, but breaks for us with docker/deploy (our own docker stuff, pre redwood docker)
How do we reproduce the bug?
I'm lost on this so far, mostly want to reach out and see, if anything comes to mind. Might task a colleague to condense a repro repo, if nothing else happens.
What's your environment? (If it applies)
Are you interested in working on this?
The text was updated successfully, but these errors were encountered: