exercism / v3-beta

12 stars 2 forks source link

Redirect .io to .org #366

Open iHiD opened 3 years ago

ErikSchierboom commented 3 years ago

On my Mac, the CLI API endpoint is configured as https://exercism.io/api/v1

Troubleshooting Information
===========================

Version
----------------
Current: 3.0.13
Latest:  3.0.13

Operating System
----------------
OS:           darwin
Architecture: amd64

Configuration
----------------
Home:      /Users/erik
Workspace: /Users/erik/Code/exercism/solutions
Config:    /Users/erik/.config/exercism
API key:   8b48*****************************276

API Reachability
----------------

GitHub:
    * https://api.github.com
    * [connected]
    * 21.430514ms

Exercism:
    * https://exercism.io/api/v1/ping
    * [connected]
    * 209.716914ms

If you are having trouble please file a GitHub issue at
https://github.com/exercism/exercism.io/issues and include
this information.

However, I can't submit

exercism submit Wordy.fs
Error: The auth token provided is invalid

or configure

exercism configure              
Error: The token '*********' is invalid. Find your token on https://exercism.io/my/settings.
ee7 commented 3 years ago

I didn't see https://www.exercism.io redirect to .org yet, just FYI.

It works fine without "www."

iHiD commented 3 years ago

@ee7 Now?

ErikSchierboom commented 3 years ago

Works for me

iHiD commented 3 years ago

Is the https://exercism.io/api/v1 still an issue? (I presume so). Do we have any idea how to go about fixing it?

ErikSchierboom commented 3 years ago

It's still an issue. I have no idea how to fix it as it seems to be something that the CLI would have to support (detecting a 301 redirect and sending the headers again). Maybe someone from @exercism/cli would be willing to get in contact with me so I can explain the issue?

In the mean time, it might be useful to periodically check the logs to see if requests are being made to that URL.

ee7 commented 3 years ago

@ee7 Now?

Yeah, works now.