Unauthorized. Please check that your
RAILWAY_API_TOKEN
is valid and has access to the resource you're trying to use.
agoraleads
HOBBYOP

22 days ago

I am trying to deploy my project to railway using RAILWAY_API_TOKEN but for some reason I am unauthorized error. The same thing happens if I use RAILWAY_TOKEN with or without scope (e.g account, workspace, project).

Solved$10 Bounty

Pinned Solution

Try setting the token without the quotation marks.

9 Replies

Have you tried using a project scoped token with RAILWAY_TOKEN?


agoraleads
HOBBYOP

22 days ago

Yes I have, it still shows the same error message.


How are you running the commands?


agoraleads
HOBBYOP

22 days ago

On Windows, I use:

set RAILWAY_TOKEN="secret-railway-token"
railway up --service <service-name> --detach


Are you using command prompt, powershell, or Git bash/WSL?


agoraleads
HOBBYOP

22 days ago

Command prompt


Try setting the token without the quotation marks.


Anonymous
PRO

22 days ago

If removing the quotatio marks dont' work - try just single quotes ' '


0x5b62656e5d

Try setting the token without the quotation marks.

agoraleads
HOBBYOP

22 days ago

This worked, thank you so much!


Status changed to Solved brody 21 days ago


Loading...