Skip to content

[Bug]: Cloudflare Credentials 400 Bad Request #830

Closed

Description

@JustNZ

Existing issue

  • I have searched the existing issues and found no duplicate.

Problem description

When I try to connect my Cloudflare Account via Settings -> Credentials I get the error Cloudflare answered 400

On the Browser Console I see this:

Failed to load resource: the server responded with a status of 400 (Bad Request) https://my-openship-url/api/proxy/api/credentials

POST https://my-openship-url/api/proxy/api/credentials 400 (Bad Request)

I verified that the token is working directly on the server where Openship is running at that worked

curl -X GET "https://api.cloudflare.com/client/v4/accounts/12345/tokens/verify" \
     -H "Authorization: Bearer this_is_the_token"

Steps to reproduce

  1. Create token on Cloudflare
  2. Go on Openship to Settings -> Credentials
  3. Enter a name and the token
  4. see the 400 error as toast and in the browser console

Environment

  • OpenShip version/commit: 0.7.1
  • Deployment method: Self-hosted server
  • Operating system: Ubuntu 26.04 LTS
  • Browser (if applicable): Arc

Logs and screenshots

Failed to load resource: the server responded with a status of 400 (Bad Request) https://my-openship-url/api/proxy/api/credentials

POST https://my-openship-url/api/proxy/api/credentials 400 (Bad Request)

Additional context

No response

Activity

  1. added theissue type on Sep 4, 2026
  2. added
    bug
    on Sep 4, 2026
  3. JustNZ commented on Sep 4, 2026

    @JustNZ
    Author

    Found the problem on my end. The Token has to be created from the user profile on cloudflare and not on the Account API Tokens. This has to be better documented

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions