Next.js Discord

Discord Forum

Every 5minutes I hit by 400 bad request in version 15 and 16 with turbopack only

Unanswered
Billy posted this in #help-forum
Open in Discord
BillyOP
error message on the browser's console:
GET
http://localhost:3000/dashboard/properties/create
net::ERR_HTTP_RESPONSE_CODE_FAILURE 400 (Bad Request)


I noticed that when I use turbopack for dev script the error keeps happening in 5min as an average, especially when I remove or write code, and I try to reload the page the browser keeps sending the same error but the terminal shows 200 response, so I rerun the dev script again to make it work.
When I use dev script without turbopack the problem disappears.

package.json
  "scripts": {
    "dev": "next dev --turbopack",
    "dev:no-turbopack": "next dev",
    "build": "next build --turbopack",
    "start": "next start"
  },


this issue happens to me for the both versions app router 15 and 16, and not for a specific route, but for any one.

1 Reply

BillyOP
I do not understand why nextjs community stop engaging