WarsWorld icon indicating copy to clipboard operation
WarsWorld copied to clipboard

next-auth error (CLIENT_FETCH_ERROR)

Open JaviTrek opened this issue 2 years ago • 3 comments

Unsure why when loading certain pages, this logs image

JaviTrek avatar Dec 24 '23 20:12 JaviTrek

Found this: image https://stackoverflow.com/questions/76177919/why-do-i-get-next-autherrorclient-fetch-error-messageundefined

cliveglitch avatar Jan 11 '24 23:01 cliveglitch

@cliveglitch That would make so much sense, I tried implementing that but couldn't. Didn't know it could be the cause of it, will research more tomorrow unless you want to take on this!

JaviTrek avatar Jan 12 '24 04:01 JaviTrek

@JaviTrek yeah, I also got problems implementing that, but I have the theory that because this is kind of a recent update trpc still doesn't support getServerSession so it could be unsolvable for now, needs a huge workaround or something else.

https://trpc.io/docs/server/context Although considering trpc documentation they show an example with getSession, so maybe the documentation is outdated or that isn't the problem.

cliveglitch avatar Jan 12 '24 18:01 cliveglitch