dokploy
dokploy copied to clipboard
[BUG] GitHub provider Test Connection returns “Bad credentials” after successful App installation
To Reproduce
- Go to Dokploy → Git Providers → GitHub.
- Create a new GitHub App using Dokploy.
- Install and authorize the App on GitHub.
- Return to Dokploy.
- Confirm that the provider appears normally in the Git Providers list and no longer shows “Action required”.
- Open the provider and click Test Connection.
- 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
Is anyone working on this ? I would like to work if no one is yet !! @Siumauricio
it was because my server's time was not correct and pointing at correct ntp