burhan-syed/troddit

next-auth error when basic auth is enabled

sommerper opened this issue · 0 comments

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!