Skip to content
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 when basic auth is enabled #158

Open
sommerper opened this issue Apr 6, 2023 · 0 comments
Open

next-auth error when basic auth is enabled #158

sommerper opened this issue Apr 6, 2023 · 0 comments

Comments

@sommerper
Copy link

Hi!

I have basic auth enabled on my server and get the following error from the docker container:

troddit  | (Use `node --trace-deprecation ...` to show where the warning was created)
troddit  | [next-auth][error][CLIENT_FETCH_ERROR]
troddit  | https://next-auth.js.org/errors#client_fetch_error invalid json response body at https://troddit.xxxxxxxxxxx.com/api/auth/session reason: Unexpected end of JSON input {
troddit  |   error: {
troddit  |     message: 'invalid json response body at https://troddit.xxxxxxxxxxx.com/api/auth/session reason: Unexpected end of JSON input',
troddit  |     stack: 'FetchError: invalid json response body at https://troddit.xxxxxxxxxxx.com/api/auth/session reason: Unexpected end of JSON input\n' +
troddit  |       '    at /app/node_modules/next/dist/compiled/node-fetch/index.js:1:51220\n' +
troddit  |       '    at processTicksAndRejections (node:internal/process/task_queues:96:5)',
troddit  |     name: 'FetchError'
troddit  |   },
troddit  |   url: 'https://troddit.xxxxxxxxxxx.com/api/auth/session',
troddit  |   message: 'invalid json response body at https://troddit.xxxxxxxxxxx.com/api/auth/session reason: Unexpected end of JSON input'
troddit  | }

The site does seem to operate normally but is there a way to fix this?
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant