Authentication not working with RAILWAY_TOKEN

thereis
PROOP

13 days ago

Hello, I am trying to use the RAILWAY_TOKEN in my GitHub action and I am getting:

Unauthorized. Please login with `railway login`

I am missing something?

Solved$10 Bounty

5 Replies

Railway
BOT

13 days 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!


13 days ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open brody 13 days ago


monuit
PROTop 5% Contributor

13 days ago

hey, you have to use your account/team's token, not project token and export it via RAILWAY_API_TOKEN in your GitHub Action. if you need to use a specific project token, then you need to use RAILWAY_TOKEN as referenced by railway's docs


thereis
PROOP

13 days ago

hey, thanks for the message! I tried to use my personal token and when trying to link the project, the error is the same: Unauthorized. Please login with railway login

The trace id: 8338076612206454428


thereis

hey, thanks for the message! I tried to use my personal token and when trying to link the project, the error is the same: Unauthorized. Please login with railway loginThe trace id: 8338076612206454428

monuit
PROTop 5% Contributor

13 days ago

did you set this into github's env secrets? can you output your entire logs here (hiding any sensitive info)


thereis
PROOP

13 days ago

I got it working by doing the following:

1. Go to personal account, create a token, DONT SELECT A WORKSPACE.

  1. Get the token and use it as RAILWAY_API_TOKEN


Status changed to Solved brody 13 days ago


Loading...