railwayapp/cli

unable to parse config file, regenerating

brody192 opened this issue · 4 comments

happens when attempting to use the v3 cli with a config that was generated with the v2 cli

This happened when I renamed a project. Just delete the config file.

rm -f ~/.railway/config.json

yep that's the fix but this issue is to hopefully prevent the config file from corrupting in the first place

This also happens for me - using v3 - every time I unlink a project the config file gets corrupt and becomes unusable

It is easily reproducable

config file before unlink:
image

And config file after unlink:
image

Working on a fix for this now. It looks like the file contents aren't being cleared before write.