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
Project ID:
N/A
N/A
You might find these helpful:
- Getting Started | Railway Docs
⚠️ experimental feature
unable to parse config file
try delete the config file and start again
Where is it stored?
Nevermind. I found it.
It looks like it popped the token in there a second time! 😅
We are good now!
race condition when writing to the config file, neb is new to programming 🙂
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
greg has already added atomic config file writes
https://github.com/railwayapp/cli/pull/394
Glad it was merged, now it needs to be released! 🤣🤣🤣
merged 5 days ago, last release was 3 days ago
latest ver 3.0.18
I installed it last night on a fresh os install, so, it be broken! 🤣🤣
did you manually fix the config file first?
That’s how I got it working after it broke
json is hard