CLI no token message tells the user to go to a incorrect URL

,

Currently, when using the CLI without a token, it dumps the following into stdout:

Error:

Welcome to Exercism!

To get started, you need to configure the tool with your API token.
Find your token at

    https://exercism.io/my/settings

Then run the configure command:

    exercism configure --token=YOUR_TOKEN

But the url “Exercism” is not right anymore!
It should be “Exercism

I can open a PR to fix it.

That link works for me.

Is the problem the link goes to the accounts settings section and not the API/CLI section underneath it?

Nevertheless, the old exercism.io link should be updated.

It works because it redirects to the right site, but it’s not the canonical link.

Let’s update the URL to https://exercism.org/settings/api_cli. So users save a click and we have the latest TLD.

(It does not help, that the forum shortens the preview for this discussion)

Just did the PR: Fix URL in no token error message by 521337 · Pull Request #1166 · exercism/cli · GitHub

1 Like

It looks like that broke the tests :slight_smile:

Should be fixed with the added commit, thanks!

It looks like go fmt needs to be run.

I think I broke the whole program with this commit.

I updated defaultBaseUrl from https://api.exercism.io/v1/
to https://exercism.org. But this value is used to ping “defaultBaseUrl/ping” which now it’s “https://exercism.org/ping”. This does not exist and it’s making the whole program error out when trying to set the token.

Would you like to submit a revert PR to roll back that change?

Yes please. Should I open it? Right now the main branch just doesn’t work because of my PR.

Yes please

I made a PR to revert.

1 Like

But https://exercism.org/api/v1 should work. Maybe try that?

Error: The base API URL ‘https://api.exercism.io/v1’ cannot be reached

Please help

Works for me. If it’s not working for you, you have an issue unrelated to this thread. You may want to create a new thread and share details.