Cannot log in to Railway with GitHub - OAuth error and 404 on redirect
flowerschamp
PROOP

6 months ago

Hey, I’m having trouble logging into Railway using my GitHub account. I already cleared cookies for both railway.com and github.com. It was working fine earlier, but now it’s broken and I can’t connect my repositories for deployment.

Here’s exactly what happens:

I go to railway.com and click “Login”

I try redeploy my service

It throws error - "Repository not found"

I go to setting to reconnect the same repo. I remove the previous one and try reconnecting the github.

I click “Continue with GitHub”

I choose the repo and save

redirect back to railway with error - Error authenticating with github - "Invalid github OAuth callback"

Now can't redeploy my service

I saw similar issues earlier happened as well. Please fix it.

Solved

14 Replies

Railway
BOT

6 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


6 months ago

Can you try removing the Railway app from GitHub, and then relogging in from railway.com with GitHub?


Status changed to Awaiting User Response Railway 6 months ago


flowerschamp
PROOP

6 months ago

I am using company email and password to login into railway, not github account. I also can't use github to login into railway. Can you please suggest any other solution?


Status changed to Awaiting Railway Response Railway 6 months ago


6 months ago

We don't support passwords on Railway. Are you sure you have the right credentials?


Status changed to Awaiting User Response Railway 6 months ago


flowerschamp
PROOP

6 months ago

Yes now it moved to password less via OTP in email. I was just referring to the method. This question doesn't solve anything. Can we please focus on the actual problem here? I am in a pro Workspace plan and would expect to connect with github smoothly. I saw very similar issues here in the forum. As a result we can't deploy any new updates/critical bug fixes to railway and it is affecting the actual business.


Status changed to Awaiting Railway Response Railway 6 months ago


6 months ago

Could you please show us the actual error?


Status changed to Awaiting User Response Railway 6 months ago


flowerschamp
PROOP

6 months ago

This is the error I am getting while connecting the Github repo now. This is the full background:
1. we started using railway long back
2. we connected out github repo and started deploying the micro service
3. It was running just fine till few days earlier. Last successful deployment was 3 months ago via the same github repo
4. Previously it was auto deploy so if something got pushed to the branch it'll trigger auto deployment
5. Now if the User isn't on the Railway team, their commit needs approval.
6. Open the railway dashboard to manual deploy
7. clicking on the deploy button gives error - "cannot access the github repo"
8. I remove the github to reconnect the same repo to resolve the error
9. Now open Settings tab Connect Source option to connect the github repo
10. login to github and add the repo. click on save
11. auth callback to railway. throwing error - "Invalid GitHub OAuth callback"

I have attached the step by step screenshot to the uploaded pdf. Hope that helps!


Status changed to Awaiting Railway Response Railway 6 months ago


Acknowledge the bug. In the short term, you can use railway up to unblock your business. I am trying to see what might have caused this, but it's difficult because I don't see any other reports.

Can you give me your GitHub username so I can see if there is a user conflict in our DB?


Status changed to Awaiting User Response Railway 6 months ago


6 months ago

We are digging into this error and I have another question besides what Angelo asked. Are you using GitHub enterprise or have some other company SSO authentication to GitHub? There seems to be an issue with the OAuth flow on your GitHub account where we are not receiving the data we expect (our fault for not handling it).


flowerschamp
PROOP

6 months ago

Hi Angelo and Jr,

Here are the requested details:
GitHub username - sdhasbusiness

It is not a GitHub enterprise or company SSO. It is a personal account.
Repo - https://github.com/sdhasbusiness/FlowersChamp-service (it is a private repo)
Railway email - admin@flowerschamp.com

Also can you please explain the usage of railway up command? do I need any setup before I run this command from cli? You can share me any document link if you have.


Status changed to Awaiting Railway Response Railway 6 months ago


6 months ago

Hey, you can follow the instructions in our docs to use the CLI. Once you have the CLI installed, you can log in, link your project and proceed with deploys using railway up.

As for the GitHub issue, could you go to this page and try using the "Connect" button under "Account Integrations"?


Status changed to Awaiting User Response Railway 6 months ago


flowerschamp
PROOP

5 months ago

Thanks team. I could connect with Github via account integration and successfully redeployed application. Thanks for your support.


Status changed to Awaiting Railway Response Railway 6 months ago


Status changed to Solved flowerschamp 6 months ago


flowerschamp
PROOP

4 months ago

Hi Team, We are trying to login to github by using the username: sdhasbusiness and the email id: admin@flowerschamp.com. it is throwing an error that the account is not there or the email id is invalid can you please help us on resolving this issue/


Status changed to Awaiting Railway Response Railway 4 months ago


4 months ago

Could I get a bit more info on this problem?
Are you trying to log into your railway account via GitHub? Is GitHub the one showing this email invalid issue?
Any info helps!


Status changed to Awaiting User Response Railway 4 months ago


Railway
BOT

4 months ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 4 months ago


Loading...