Skip to content

captcha_invalid Error in Clerk Next.js Sign-Up Flow #5223

@kc-hsh-value

Description

@kc-hsh-value

Preliminary Checks

Reproduction

https://github.com/shockValue666/test_auth

Publishable key

pk_test_Y29udGVudC1nYXJmaXNoLTk0LmNsZXJrLmFjY291bnRzLmRldiQ

Description

I am experiencing a captcha_invalid error when trying to sign up using Clerk in a Next.js 15.1.7 app.

Steps to Reproduce:
1. Navigate to /auth/register
2. Enter email and password
3. Click “Sign Up”
4. The request fails with captcha_invalid.

Expected behavior:

Signup normally

Actual behavior:

got error:

{
  "status": 400,
  "clerkError": true,
  "errors": [
    {
      "code": "captcha_invalid",
      "message": "Sign up unsuccessful due to failed security validations.",
      "longMessage": "Sign up unsuccessful due to failed security validations. Please refresh the page to try again or reach out to support for more assistance.",
      "meta": {}
    }
  ]
}

Environment

System:
    OS: macOS 14.5
    CPU: (8) arm64 Apple M2
    Memory: 75.91 MB / 8.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.1.0 - ~/.nvm/versions/node/v22.1.0/bin/node
    Yarn: 1.22.21 - /usr/local/bin/yarn
    npm: 10.7.0 - ~/.nvm/versions/node/v22.1.0/bin/npm
    pnpm: 8.15.4 - ~/node_modules/.bin/pnpm
    bun: 1.1.20 - ~/.bun/bin/bun
    Watchman: 2024.11.11.00 - /opt/homebrew/bin/watchman
  Browsers:
    Brave Browser: 132.1.74.51
    Safari: 17.5
  npmPackages:
    @clerk/nextjs: ^6.12.0 => 6.12.0 
    @eslint/eslintrc: ^3 => 3.3.0 
    @radix-ui/react-dialog: ^1.1.6 => 1.1.6 
    @radix-ui/react-label: ^2.1.2 => 2.1.2 
    @radix-ui/react-slot: ^1.1.2 => 1.1.2 
    @types/node: ^20 => 20.17.19 
    @types/react: ^19 => 19.0.10 
    @types/react-dom: ^19 => 19.0.4 
    class-variance-authority: ^0.7.1 => 0.7.1 
    clsx: ^2.1.1 => 2.1.1 
    eslint: ^9 => 9.21.0 
    eslint-config-next: 15.1.7 => 15.1.7 
    lucide-react: ^0.475.0 => 0.475.0 
    next: 15.1.7 => 15.1.7 
    postcss: ^8 => 8.5.3 
    react: ^19.0.0 => 19.0.0 
    react-dom: ^19.0.0 => 19.0.0 
    tailwind-merge: ^3.0.2 => 3.0.2 
    tailwindcss: ^3.4.1 => 3.4.17 
    tailwindcss-animate: ^1.0.7 => 1.0.7 
    typescript: ^5 => 5.7.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions