burhan-syed / troddit

A web client for Reddit with authenticated logins and a variety of browsing options
https://www.troddit.com
GNU Affero General Public License v3.0
551 stars 80 forks source link

next-auth error when basic auth is enabled #158

Open sommerper opened 1 year ago

sommerper commented 1 year ago

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!