CLI not staying logged in

On a fresh OS install, and logging in to the Railway CLI, I could not initiate a new project. It said I needed to run railway login, so I did it again, and this was the results.
14 Replies
Percy
Percy15mo ago
Project ID: N/A
MantisInABox
MantisInABox15mo ago
N/A
Percy
Percy15mo ago
You might find these helpful: - Getting Started | Railway Docs
⚠️ experimental feature
milo
milo15mo ago
unable to parse config file try delete the config file and start again
MantisInABox
MantisInABox15mo ago
Where is it stored? Nevermind. I found it. It looks like it popped the token in there a second time! 😅 We are good now!
Brody
Brody15mo ago
race condition when writing to the config file, neb is new to programming 🙂
MantisInABox
MantisInABox15mo ago
Maybe we can add some logic checking, that if the login token is set, it doesn’t write a whole new set of lines, at the end of the file if you run the command again! Hahahaha
Brody
Brody15mo ago
greg has already added atomic config file writes https://github.com/railwayapp/cli/pull/394
MantisInABox
MantisInABox15mo ago
Glad it was merged, now it needs to be released! 🤣🤣🤣
Brody
Brody15mo ago
merged 5 days ago, last release was 3 days ago latest ver 3.0.18
MantisInABox
MantisInABox15mo ago
I installed it last night on a fresh os install, so, it be broken! 🤣🤣
Brody
Brody15mo ago
did you manually fix the config file first?
MantisInABox
MantisInABox15mo ago
That’s how I got it working after it broke
Brody
Brody15mo ago
json is hard
Want results from more Discord servers?
Add your server
More Posts