Web Dev Cody
Web Dev Cody12mo ago

Issue with WS connection Locally

I'm trying to run a project locally but it seem to keep getting this WS error. Has anyone run into this before?
No description
4 Replies
Web Dev Cody
Web Dev CodyOP12mo ago
Now that I think about this, im not sure why it’s trying to connect to anything locally, I have it setup to talk to my development convex instance
Michal Srb
Michal Srb12mo ago
I'd check your .env.local, which is usually used to set the CONVEX_URL used by your client
nipunn
nipunn12mo ago
Check the .env.local - I suspect that flipping back and forth between using the development cloud convex instance vs the open source local-backend process may have some rough edges around updating .env.local. If you go in there manually and either fix it / wipe it, then npx convex dev will figure it out. From the screenshot, it looks like it's trying to connect to the OSS backend (localhost:3210), which it'll do based on .env.local
Web Dev Cody
Web Dev CodyOP12mo ago
yup that was it 😆

Did you find this page helpful?