#Getting this error after creating a fresh convex app

5 messages · Page 1 of 1 (latest)

weak wave
#

➜ acora npm run dev

[email protected] predev
convex dev --until-success && convex dev --once --run-sh "node setup.mjs --once" && convex dashboard

? Welcome to Convex! Would you like to login to your account? Login or create an account
Welcome to developing with Convex, let's get you logged in.
? Device name: DESKTOP-DTT3PHB
Visit https://auth.convex.dev/activate?user_code=JVLL-SLRG to finish logging in.
You should see the following code which expires in 15 minutes: JVLL-SLRG
? Open the browser? Yes
✔ Saved credentials to /home/pranoy/.convex/config.json
? Project name: acora
✔ Created project acora, manage it at https://dashboard.convex.dev/t/pranoy-majumdar/acora
✔ Provisioned a dev deployment and saved its:
name as CONVEX_DEPLOYMENT to .env.local
URL as VITE_CONVEX_URL to .env.local

Write your Convex functions in convex/
Give us feedback at https://convex.dev/community or [email protected]
View the Convex dashboard at https://dashboard.convex.dev/d/different-poodle-649

⠇ Checking for index or schema changes...
Retrying request (attempt 3/6)...
⠦ Checking for index or schema changes...
Retrying request (attempt 4/6)...
⠙ Checking for index or schema changes...
Retrying request (attempt 5/6)...
⠋ Checking for index or schema changes...
Retrying request (attempt 6/6)...
✖ Error: Unable to run schema validation on https://different-poodle-649.convex.cloud
✖ TypeError: fetch failed
Failed due to network error, retrying in 545.2ms...

Discord

Join the Convex Discord! Explore Convex, the fullstack TypeScript platform for developers and startup founders. | 7993 members

simple oceanBOT
#

Hi @weak wave. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

It looks like you're experiencing a network connectivity issue when trying to run your Convex application. This is a common issue that can occur for various reasons when the Convex CLI can't establish a connection to the Convex cloud.

Based on the error message, the CLI is unable to connect to your deployment at <https://different-poodle-649.convex.cloud> with a "fetch failed" error. Here are some potential solutions:

Possible Solutions:

  1. Check your internet connection
    Make sure you have a stable internet connection. Try accessing other websites to confirm your connectivity.

  2. Network configuration issues
    Some users have reported issues with IPv4 vs IPv6 connectivity, especially when using mobile hotspots or certain network configurations. This could be causing the "fetch failed" error.

  3. Try running a network test
    You can diagnose connectivity issues by running:

    npx convex network-test
    

    This will help identify if there are specific connectivity problems with your Convex deployment.

  4. Node.js version compatibility
    If you're using a newer version of Node.js (like Node 22), try switching to Node 18, as some users have reported compatibility issues with local deployments on newer Node versions as mentioned in this Discord thread.

  5. Firewall or VPN interference
    Check if you have any firewall settings or VPN that might be blocking the connection to Convex servers.

  6. Wait and retry
    Sometimes these issues are temporary. Wait a few minutes and try running the command again.

#

If the issue persists, you might want to reach out to Convex support at [email protected] for more specific assistance with your deployment.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:

#

@weak wave Kapa.ai is still learning and improving, please let me know how I did by reacting below.