whythawk / full-stack-fastapi-postgresql

Full stack, modern web application generator. Using FastAPI, PostgreSQL as database, Nuxt3, Docker, automatic HTTPS and more.
MIT License
231 stars 47 forks source link

WebSocket connection to 'ws://localhost:4000/ws' failed #31

Closed shroominic closed 1 year ago

shroominic commented 1 year ago
Screenshot 2023-06-26 at 12 09 44

I don't know what is happening or where this is coming from but the client is constantly trying to connect to this web socket and failing ...

turukawa commented 1 year ago

There is a placeholder for websockets (in apiCore) but I'm not sure what could be calling it. So ... it's probably not the stack.

What it could be is the hot-reload in the Nuxt dev environment which does use sockets to check for code changes. You might want to try refreshing your Nuxt / yarn install (delete the .nuxt and node_modules folders in frontend and then yarn install again).

shroominic commented 1 year ago
Screenshot 2023-06-28 at 12 51 55

Thanks, it was something nuxt related so I fixed it by putting watch: false, inside the nuxt.config.ts/content dict