Next.js Discord

Discord Forum

Debugging internal network requests

Unanswered
Barbary Lion posted this in #help-forum
Open in Discord
Barbary LionOP
I'm using Next.js with Next-Auth, and sometimes getting an error when I call to /api/auth/session (it seems to be returning HTML when called by next-auth/react's getSession). How can I interpose those local calls to see what's happening?

[next-auth][error][CLIENT_FETCH_ERROR]
https://next-auth.js.org/errors#client_fetch_error Unexpected token < in JSON at position 0 {
error: {
message: 'Unexpected token < in JSON at position 0',

0 Replies