Next.js Discord

Discord Forum

Problem running Next.js locally - Firefox works, but Chrome and CURL get a 500 error.

Answered
Lenz Weber-Tronic posted this in #help-forum
Open in Discord
Pretty much what I'm saying in the title:

When I visit the page in Firefox, it works, but visiting it with Chrome, or accessing it from Playwright or curl result in
curl localhost:3000/rsc/dynamic/PreloadQuery/queryRef-useReadQuery
{
  "statusCode": 500,
  "stack": []
}


Irritatingly, hosting the page on Vercel, I can also curl it: https://apollo-git-6cd975-apollo-client-next-package-integration-tests.vercel.app/rsc/dynamic/PreloadQuery/queryRef-useReadQuery

This seems to be something with my local environment, but I don't know what could be the problem here. Any ideas?
Answered by Lenz Weber-Tronic
deleting node_modules or .next didn't help, but deleting the whole repo did. no idea what caused this 🤷
View full answer

3 Replies

Now it's also a 500 in Firefox, and nothing in the console, neither with dev nor a production build 😦
deleting node_modules or .next didn't help, but deleting the whole repo did. no idea what caused this 🤷
Answer
After it occured again I found the solution: I had a different server running on the same port, but bound to a different interface/protocol, so Firefox contacted one while Chrome contacted the other.