R
Railway•17mo ago
k

Project token not found

I'm trying to debug an issue, trying to get railway up working with Github Actions. I'm essentially running the command locally to replicate the issue which is as follows:
railway --version # 3.4.0
RAILWAY_TOKEN="<railway_api_token>" railway up --detach --service rpc.krb.dev # Project token not found
railway --version # 3.4.0
RAILWAY_TOKEN="<railway_api_token>" railway up --detach --service rpc.krb.dev # Project token not found
Unless I run railway login and link the CLI to my account, I cannot run any commands which is the cause of the issues I'm facing in Github Actions. What is a Project Token exactly? Is it not the same as what is described in the docs? Context:
Project ID: 867dc365-5c32-415e-a9cb-09e27981e952
Project ID: 867dc365-5c32-415e-a9cb-09e27981e952
7 Replies
Percy
Percy•17mo ago
Project ID: 867dc365-5c32-415e-a9cb-09e27981e952
k
kOP•17mo ago
@Brody Like I said, I've set this token in the example command and the output is Project token not found ... what am I missing?
Brody
Brody•17mo ago
i can't reproduce this error
Brody
Brody•17mo ago
try without quotes on your token
k
kOP•17mo ago
I've figured it out, I used a token created from https://railway.app/account/tokens which was the cause of the problem. Using a token created from https://railway.app/project/29ac2bbf-ecce-46a7-b1ec-850f2b8a8d82/settings/tokens has fixed the issue. I overlooked the instruction in the document I was following https://blog.railway.app/p/github-actions so it's entirely my fault. I would have assumed that an account token would still have worked though 🤔
Brody
Brody•17mo ago
yeah I was under the assumption you where using a project token like you said you where
Want results from more Discord servers?
Add your server