judicial-coral
judicial-coral5mo ago

WebSocket is closed before the connection is established (localhost:5002)

Hello Just following refine's supabase tutorial, I just setup the project (no crud yet), and can't go /login : it gives me a blank page with a network warning about websocket
2 Replies
kapa.ai
kapa.ai5mo ago
Hi @Fen747. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- It seems like you're having trouble with the WebSocket connection for the devtools server. This issue was discussed in a support thread (https://discord.com/channels/837692625737613362/1159002778845315092) on the Refine Discord server. Here are a few steps you can try: 1. Update your @refinedev/core package. You can do this by running the following command:
yarn @refinedev/core@latest
yarn @refinedev/core@latest
2. If you're using npm run dev or a similar command to start your development server, try running the following command after you start your server:
npx wscat --connect ws://localhost:5002
npx wscat --connect ws://localhost:5002
This command will try to connect to the WebSocket server used for the devtools. 3. If you're using a script to start your development server, try appending --devtools to it. For example, if your script is PORT=3001 env-cmd -f .env.dev refine start, change it to PORT=3001 env-cmd -f .env.dev refine start --devtools. If these steps don't resolve your issue, it might be helpful to share more details about your environment and any error messages you're seeing. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai5mo ago
<@119417957666390017> kapa.ai is still learning and improving, please let us know how it did by reacting below