scaleway / scaleway-cli

Command Line Interface for Scaleway

Home Page:https://www.scaleway.com/en/cli/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

scw login doesn't work on Windows

Hades32 opened this issue · comments

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"

Yes @Hades32, I also found this bug today, I will try to fix the compatibility with windows.
Apparently you are our first windows user 😀

haha, well it seems like it ;)

I have installed scw on my Raspberry in the meantime :)

@Hades32, #343 is merged and should fix windows issues, can you give a new try ?

works fine now!