hopinc / cli

💻 Interact with Hop in your terminal
https://docs.hop.io/cli
Mozilla Public License 2.0
78 stars 8 forks source link

`hop auth login` with `--token` option fails in newer versions #16

Closed phips-git closed 1 year ago

phips-git commented 1 year ago

Hey there,

I'm current embedding the hop.io CLI within a Github Actions workflow. Installation works fine, but when I run the hop auth login command with the project token in the --token option, it gives me the following error for all newer versions.

When I try the exact same procedure with the version stated in the docs (v0.1.46) (https://docs.hop.io/cli/ci#example) it works fine.

Have you encountered this error already?

Screenshot 2023-08-04 at 08 02 51

pxseu commented 1 year ago

Hi,

Are you possibly using a version pre v0.2.47? This version should've fixed that issue in https://github.com/hopinc/cli/commit/4e03256d4bb60e8089be09d0a469cd7d400729cb. Let me know if that helps.

Cheers

phips-git commented 1 year ago

Nope, it was actually with the latest one v0.2.52. The bug was introduced somewhere between v0.1.47 and today, because with v0.1.47 it is not showing this error.

pxseu commented 1 year ago

Okay, found the culprit. Should be fixed in v0.2.53.

phips-git commented 1 year ago

Thank you for the quick fix. The message isn't shown anymore. But now I have the next issue: Running your "deploy to hop" Github Actions with the latest version is stuck in this phase forever and won't finish after hours until I manually cancel the workflow. Have you seen this before also?

Screenshot 2023-08-07 at 10 35 17
pxseu commented 1 year ago

Okay, there was a small issue on our backend. Everything should be fixed now, however you will need to re-create your project token in the dashboard https://console.hop.io/project/settings/tokens. Sorry for the inconvenience.

phips-git commented 1 year ago

@pxseu works like a charm now, thank you very much for the quick support!