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

a month ago

How is this even possible?

I create an account/workspace/project token = 36 chars long

I set RAILWAY_TOKEN=value

I run railway whoami and I get

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

I know the value is set correctly because when i remove the token, i get a dierent message = Unauthorized. Please login with railway login

anyone know why?

Solved$10 Bounty

Pinned Solution

You can't run railway whoami when using a scoped token.

https://docs.railway.com/guides/cli#tokens

1 Replies

You can't run railway whoami when using a scoped token.

https://docs.railway.com/guides/cli#tokens


Status changed to Solved brody about 1 month ago


Loading...