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.
Is the problem the link goes to the accounts settings section and not the API/CLI section underneath it?
glennj
September 13, 2024, 8:03pm
4
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.
vaeng
September 14, 2024, 6:17am
6
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)
IsaacG
September 14, 2024, 4:19pm
8
It looks like that broke the tests
Should be fixed with the added commit, thanks!
IsaacG
September 14, 2024, 8:52pm
10
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.
IsaacG
September 18, 2024, 11:33am
12
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.
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
IsaacG
September 20, 2024, 3:17pm
18
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.