scw login doesn't work on Windows
Hades32 opened this issue · comments
Martin Rauscher commented
Looks like Windows' line endings aren't stripped correctly:
C:\Users\marti$ scw -D login
Login (cloud.scaleway.com): hades32@gmail.com
Password:
time="2016-04-07T23:03:07+02:00" level=debug msg="curl -X POST -d \"{\\\"email\\\":\\\"hades32@gmail.com\\\\r\\\",\\\"password\\\":\\\"XX-XX-XX-XX\\\",\\\"description\\\":\\\"scw-WIN-SJ0A7GO32DV\\\",\\\"expires\\\":false}\" -H \"Content-Type: application/json\" -H \"User-Agent: scw/v1.9.0\" -H \"X-Auth-Token: \" https://account.scaleway.com/tokens"
time="2016-04-07T23:03:08+02:00" level=fatal msg="cannot execute 'login': [401] maybe your email or your password is not valid"
Quentin Perez commented
Yes @Hades32, I also found this bug today, I will try to fix the compatibility with windows.
Apparently you are our first windows user 😀
Martin Rauscher commented
haha, well it seems like it ;)
I have installed scw on my Raspberry in the meantime :)
Manfred Touron commented
Martin Rauscher commented
works fine now!