With the new (athom-cli) version (v2.1.41) you canβt login in anymore. (See below). At the end I get the error message in the browser: Something went wrong!
With the version (v2.1.40) everything works fineβ¦
Terminal:
/app # athom --version
ββββββββββββββββββββββββββββββββββββββββββββββ
β Hey developer, weβre hiring! View our open β
β positions at https://go.athom.com/jobs β
ββββββββββββββββββββββββββββββββββββββββββββββ
2.1.41
/app # athom login
ββββββββββββββββββββββββββββββββββββββββββββββ
β Hey developer, weβre hiring! View our open β
β positions at https://go.athom.com/jobs β
ββββββββββββββββββββββββββββββββββββββββββββββ
β Logging inβ¦
To log in with your Athom Account, please visit https://cli.athom.com?port=35499&clientId=****
Timeout getting authorization code!
I had a issue first time yesterday as user on Windows 10:
Solution for me: Try to do that as Administrator at least once (if you are not admin on your work profile)
It worked for me after that also as user yesterday.
Also seen reports of Mac that it workedβ¦
What OS are you on?
Did it open a browser? and could you log on?
Did your Ahthom-cli start a Webserver on port 35499?
Your link explains Athom should send the authorization token thereβ¦
As Athom isnβt reading here along all the time please submit an Issue with details (OS, Browser etc.) on Github or using email to support. Or try if Emile is online on Slack in #Developers ! That would be the fastest way by far.
When you use athom login it starts for the authentication a webserver to handle / receive the Authentication token.
Your login is started in the browser, did that open?
Have you looked in the Inspect window after logging in and authorizing your Homeyβs access?
Guess you are best off with asking Ahtom direct (Slack, or email) for support.
This is once again a typical example of what happens when a discussion goes in the wrong direction:
I just wanted to ask if anyone else has login problems with the new athom-cli version (v2.1.41), or if I need to look for the bug in my docker configuration. I will look into the issue after the alpha release of my Homey Docker development environment and create an issue on github if necessary.
I think everything is already mentioned but perhaps I can summarize.
In CLI v2.1.40 the login authentication would forward you to a website (which you need to open yourself), where you need to login and copy-paste the access token (into the terminal window)
In CLI v2.1.41 the login authentication has been changed. When calling Athom login the CLI will open a website (in the default browser) where you need to log in and through a temporary web server the access token is automatically forwarded to the terminal (no copy paste needed anymore)β¦
This will make it more easy for developers working on a Mac, Windows of Linux systemβ¦
@ChrisG I guess in your case, the browser window cannot be called for (not available in your docker image), so therefore you are not able to login on 2.1.41.
I would create the issue, because there might be more people that in their setup are running into this issueβ¦ and to at least secure that the 2.1.40 access token site will not be removed (soon)β¦
Thank you it works, but I noticed that the message " Paste the code: " comes twice ??
β Logging in...
? Paste the code: To log in with your Athom Account, please visit https://cli.athom.com?port=39869&clientId=xxxxxx
? Paste the code: xxxxxx
β You are now logged in as xxx xxx
I use a Mac and normally use a terminal to login and side load Apps. After the command βathom loginβ I get a message than a NPM update is available. Filling in my e-mail and password returns βClient credentials are invalidβ.
This must be the new login procedure. How do I proceed?
Well after a long time i wanted to use the CLI tool, but canβt. Using the latest version and running the CLI in a SSH session on a Linux server (headless).
Please add a possibility to login to homey without the need of a browser. My complete workflow is down the drain right now and i do most things remotely.
I had the same problem but at some point I was informed there was an update which I accepted. The CLI then download the new version and updated itself and then I could connect without needing the token.
I canβt remember if I did anything in the CLI to get the prompt but might have typed in the command line to install the homey library again.
I tried to update with npm install -g athom-cli, but get errors saying that permission is denied. I guess this is due to the fact that I have logged in into Homey. But I canβt because my credentios are not accepted.