-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[next-auth][error][CLIENT_FETCH_ERROR], *DESPITE* Environmental Variables Being Present #8174
Comments
getting a similar error with the fauna adapter |
We cannot recreate the issue with the provided information. Please add a reproduction in order for us to be able to investigate. Why was this issue marked with the
|
Repro is very simple: follow the basic starting instructions on your website, get anything wrong with the server-side route (eg. forget to make the
That error links to https://next-auth.js.org/errors#client_fetch_error, which falsely suggests that the problem is an environmental variable ... when the actual problem has nothing to do with any environment variable (the problem is the route setup). |
Clarified in the docs: dcb11da |
While the new language is a lot better, it still doesn't clarify that the fundamental problem is that the Why not just explain that in the message? |
Environment
System:
OS: Linux 5.15 Linux Mint 21.1 (Vera)
CPU: (8) x64 Intel(R) Core(TM) i7-4810MQ CPU @ 2.80GHz
Memory: 8.78 GB / 23.38 GB
Container: Yes
Shell: 5.1.16 - /bin/bash
Binaries:
Node: 20.3.0 - /usr/local/bin/node
npm: 9.6.7 - /usr/local/bin/npm
Browsers:
Chrome: 114.0.5735.198
Reproduction URL
None; if I can't get the starting instructions to even work, I certainly won't deploy it live :)
Describe the issue
There seems to be several variations (see #3560), but the core idea is that when you get the
CLIENT_FETCH_ERROR
:it directs you to a URL telling you to set an environmental variable ... but that variable isn't the issue.
How to reproduce
I was just following the tutorial and I ran into it. Presumably, any number of things could go wrong with setting up the route, including forgetting to set it up entirely.
Expected behavior
Instead of getting an error message with a URL that directs the user to set the environmental variable, the URL should explain that the route handler is not working, and suggest several things to check for what could be making it not work.
The text was updated successfully, but these errors were encountered: