javascript icon indicating copy to clipboard operation
javascript copied to clipboard

ClerkJS: Network error at "xxxx" - TypeError: Load failed (xxx). Please try again.

Open chenkigba opened this issue 4 months ago • 1 comments

Preliminary Checks

  • [x] I have reviewed the documentation: https://clerk.com/docs

  • [x] I have searched for existing issues: https://github.com/clerk/javascript/issues

  • [x] I have not already reached out to Clerk support via email or Discord (if you have, no need to open an issue here)

  • [x] This issue is not a question, general help request, or anything other than a bug report directly related to Clerk. Please ask questions in our Discord community: https://clerk.com/discord.

Reproduction

https://communitynet.sentry.io/share/issue/cb405eb20ca24d8da890c8779c7633b6/

Publishable key

pk_live_Y2xlcmsuYmI4OC5haSQ

Description

Steps to reproduce:

  1. Step 1: User click to open SignUp Components
  2. Step 2: Add email and password, then click confirm button.

Expected behavior:

Expected to send code to email, then User input the code and verified to sign up successfully.

Actual behavior:

When clicked the confirm button, it kept loading till user closed the window.

Image

I think I may meet the same problem like this closed issued due to unable to reproduce it:

https://github.com/clerk/javascript/issues/1616

I saw some discussion lead to "Bot" detection, and chat with gpt5-high also mentioned this.

Image Image

Thus, I suggest it might caused by Cloudflare bot detection. Cause it is randomly happening with my user, and most of my user visit from China.

I'm going to try to proxy clerk, in order to avoid this annoying problem.

Hope my situation can give your team some clue.

Environment

Progress: resolved 1, reused 0, downloaded 1, added 1, done

  System:
    OS: macOS 26.0
    CPU: (10) arm64 Apple M4
    Memory: 87.39 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 23.11.0 - /opt/homebrew/bin/node
    npm: 11.6.0 - /opt/homebrew/bin/npm
    bun: 1.2.18 - ~/.bun/bin/bun
  Browsers:
    Safari: 26.0
  npmPackages:
    @aws-sdk/client-s3: ^3.888.0 => 3.888.0 
    @aws-sdk/s3-request-presigner: ^3.888.0 => 3.888.0 
    @clerk/localizations: ^3.17.3 => 3.25.0 
    @clerk/nuxt: ^1.7.5 => 1.8.16 
    @ffmpeg/ffmpeg: ^0.12.15 => 0.12.15 
    @ffmpeg/util: ^0.12.2 => 0.12.2 
    @iconify-json/heroicons: ^1.2.2 => 1.2.2 
    @iconify-json/lucide: ^1.2.53 => 1.2.67 
    @neondatabase/serverless: ^0.10.2 => 0.10.4 
    @netlify/neon: ^0.1.0 => 0.1.0 
    @nuxt/fonts: ^0.11.4 => 0.11.4 
    @nuxt/kit: ^4.1.1 => 4.1.1 
    @nuxt/test-utils: ^3.19.2 => 3.19.2 
    @nuxt/ui: ^3.2.0 => 3.3.3 
    @nuxt/ui-pro: ^3.2.0 => 3.3.3 
    @nuxtjs/tailwindcss: 7.0.0-beta.0 => 7.0.0-beta.0 
    @pinia/nuxt: ^0.5.1 => 0.5.5 
    @prisma/client: ^6.11.1 => 6.16.0 
    @sentry/nuxt: ^10.11.0 => 10.11.0 
    @stackframe/js: ^2.8.17 => 2.8.36 
    @tanstack/vue-table: ^8.21.3 => 8.21.3 
    @testcontainers/postgresql: ^11.2.1 => 11.5.1 
    @types/bcrypt: ^5.0.2 => 5.0.2 
    @types/bun: ^1.2.17 => 1.2.21 
    @types/pg: ^8.15.4 => 8.15.5 
    @upstash/redis: ^1.35.3 => v1.35.3 
    @vitest/ui: 3.2.4 => 3.2.4 
    @vue/test-utils: ^2.4.6 => 2.4.6 
    @vueuse/core: ^13.4.0 => 13.9.0 
    bcrypt: ^6.0.0 => 6.0.0 
    dayjs: ^1.11.13 => 1.11.18 
    dotenv: ^17.2.0 => 17.2.2 
    drizzle-kit: ^0.31.4 => 0.31.4 
    drizzle-orm: ^0.44.2 => 0.44.5 
    happy-dom: ^18.0.1 => 18.0.1 
    heroicons: ^2.2.0 => 2.2.0 
    jest: ^30.0.4 => 30.1.3 
    netlify: ^22.2.1 => 22.4.0 
    netlify-cli: ^23.1.4 => 23.5.1 
    node-gyp: ^11.2.0 => 11.4.2 
    node-pg-migrate: ^8.0.3 => 8.0.3 
    nuxt: ^4.1.1 => 4.1.1 
    nuxt-vitest: ^0.11.5 => 0.11.5 
    pg: ^8.16.3 => 8.16.3 
    pg-types: ^4.0.2 => 4.1.0 
    pinia: ^2.1.7 => 2.3.1 
    pino: ^9.9.5 => 9.9.5 
    pino-http: ^10.5.0 => 10.5.0 
    pino-pretty: ^13.1.1 => 13.1.1 
    playwright: ^1.55.0 => 1.55.0 
    playwright-core: ^1.54.1 => 1.55.0 
    postgres: ^3.4.7 => 3.4.7 
    prisma: ^6.11.1 => 6.16.0 
    redis: ^5.8.0 => 5.8.2 
    tailwindcss: ^4.1.11 => 4.1.13 
    testcontainers: ^11.2.1 => 11.5.1 
    tsx: ^4.20.3 => 4.20.5 
    ufo: 1.5.3 => 1.5.3 
    vitest: ^3.2.4 => 3.2.4 
    vitest-environment-nuxt: ^1.0.1 => 1.0.1 
    vue: ^3.5.17 => 3.5.21 
    vue-router: 4 => 4.5.1 
    zod: ^3.25.67 => 3.25.76

chenkigba avatar Sep 21 '25 08:09 chenkigba

I'm seeing this too with the same set up (clerk + cloudflare worker + user from china). It also seems to happen randomly during refresh. Following to see if there is any better solutions. https://github.com/clerk/javascript/issues/3563 seems this can help rethrow and catch the network error, maybe i can add an auto refresh.

KritiKAl7 avatar Sep 28 '25 14:09 KritiKAl7