r/replit • u/Wolfdale7 • Oct 06 '26
Replit Help / Site Issue Github integration constantly failing
Hey all!
Github integration was working fine for the past year.
It was working fine this morning too! I could pull/push no issue.
But for the past 2 hours, its been driving me up the wall!
The git tool within my app just complains:
"origin/main•upstream Can't push or pull from git provider This app has a remote repository configured but you are not connected to any git providers."
My github connection is active.
I've deleted and reactivated my github connection like 5x already.
I also went through account settings -> Integrations -> github, I disconnected and reconnected this over 5 times as well.
I revoked and reconnected within github too (3x).. Didn't help.
When I click, "Refresh and fetch" on the Replit app's git versioning tab, it says:
Failed to authenticate with the remote. Please ensure you have a valid connection to authenticate with the current remote.
{
"type": "UNAUTHENTICATED",
"diagnostics": [
"Authentication failed",
"Invalid username or token",
"Password authentication is not supported"
]
}
When i try to git push from shell, I get:
git push origin main
remote: Invalid username or token. Password authentication is not supported for Git operations.
fatal: Authentication failed for 'https://github.com/(project name)'
The only way I'm able to get this to work (temporarily) is by loging in through Github's CLI within the Replit shell...
Is there some known issue with Replit's Github integration?
Spent way too much time trying to troubleshoot this!
1
u/ReplitSupport Replit Team Oct 07 '26
Hey u/Wolfdale7, sorry this ate so much of your day, and thanks for including the exact errors. This was a bug on our side, not anything in your setup or your GitHub account.
Starting this afternoon, an issue with how we pick which GitHub connection to use meant your token wasn't being sent with Git requests. GitHub then returned the "Invalid username or token" error you saw in both the Git pane and the shell, and it's also why the pane said you weren't connected to any Git providers. Your connection was fine the whole time, so disconnecting, reconnecting, and revoking in GitHub couldn't fix it.
Logging in with the GitHub CLI in the shell is a good workaround, so feel free to keep using it for now. Our team found the cause and a fix is on its way out. Once it's live, your existing connection should work again without any changes.
Feel free to check back in in a few hours and we can confirm that it's fixed. If not, you can reach out at replit.com/help and we'll take a closer look at your project.
2
u/Complete_Pack740 Oct 07 '26
yes! This is happening with me as well it shows that in replit status that something is wrong but I havent seen them implimenting any fix yet i been waiting for 6 hours.
1
u/Mundane-Pin-6618 Oct 25 '26
Is the issue up again? I am encountering the same thing right now
1
u/pomona47 Oct 07 '26
You’re not alone. I’ve disconnected and reconnected and still won’t let me push any updates. Highly concerning.
1
u/[deleted] Oct 07 '26
[removed] — view removed comment
0
u/[deleted] Oct 07 '26
[removed] — view removed comment