dokploy icon indicating copy to clipboard operation
dokploy copied to clipboard

[BUG] GitHub provider Test Connection returns “Bad credentials” after successful App installation

Open mostafa-binesh opened this issue 1 month ago • 3 comments

To Reproduce

  1. Go to Dokploy → Git Providers → GitHub.
  2. Create a new GitHub App using Dokploy.
  3. Install and authorize the App on GitHub.
  4. Return to Dokploy.
  5. Confirm that the provider appears normally in the Git Providers list and no longer shows “Action required”.
  6. Open the provider and click Test Connection.
  7. The test fails with:
Bad credentials - https://docs.github.com/rest

The browser response shows:

{
  "code": "BAD_REQUEST",
  "httpStatus": 400,
  "path": "github.testConnection"
}

Current vs. Expected behavior

  • Test Connection should succeed after the GitHub App has been installed and authorized.
  • Dokploy should list the repositories accessible to the App.

Provide environment information

Operating System:
  OS: Ubuntu 24.04
  Arch: amd64
Dokploy version: v0.30.8
VPS Provider: netherlands, private hosting
What applications/services are you tying to deploy?
  Application deployed from a GitHub repository

Which area(s) are affected? (Select all that apply)

Application

Are you deploying the applications where Dokploy is installed or on a remote server?

Same server where Dokploy is installed

Additional context

The local Git credentials work correctly and the repository can be accessed outside Dokploy.

The GitHub URL configured in Dokploy is:

https://github.com

The failure occurs during github.testConnection, before repository or branch selection.

No GitHub tokens, private keys, cookies, or authorization headers are included in this report.

Will you send a PR to fix it?

No

mostafa-binesh avatar Oct 14 '26 11:10 mostafa-binesh

DOK-860

linear-code[bot] avatar Oct 14 '26 11:10 linear-code[bot]

Is anyone working on this ? I would like to work if no one is yet !! @Siumauricio

VivekKavala avatar Oct 14 '26 18:10 VivekKavala

it was because my server's time was not correct and pointing at correct ntp

mostafa-binesh avatar Oct 15 '26 20:10 mostafa-binesh