exercism / exercism/support

TLS handshake timeout error when using CLI

Open
#48 28 comments 1 reaction 0 assignees View on GitHub
Dominant language
No language data
Stars
3
Forks
3
PR merge metrics
No merged PRs in 30d

Description

After installing the exercism CLI for the first time yesterday, I kept getting `TLS handshake timeout` errors:
```shell
$ exercism configure --token=*** -v

========================= BEGIN DumpRequest =========================
GET /v1/ping HTTP/1.1
Host: api.exercism.io
Content-Type: application/json
User-Agent: github.com/exercism/cli v3.0.11 (darwin/amd64)

========================= END DumpRequest =========================

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

Get https://api.exercism.io/v1/ping: net/http: TLS handshake timeout
```

Adding the `--no-verify` flag fixes the configure issue:
```shell
$ exercism configure --token=*** -v --no-verify

You have configured the Exercism command-line client:

Config dir: /Users/damianspain/.config/exercism
Token: (-t, --token) ***
Workspace: (-w, --workspace) /Users/damianspain/Exercism
API Base URL: (-a, --api) https://api.exercism.io/v1
```

However, there is no `--no-verify` flag for the download command, so I'm stuck:
```shell
exercism download --exercise=hello-world --track=elixir -v

========================= BEGIN DumpRequest =========================
GET /v1/solutions/latest?exercise_id=hello-world&track_id=elixir HTTP/1.1
Host: api.exercism.io
Authorization: Bearer ***
Content-Type: application/json
User-Agent: github.com/exercism/cli v3.0.11 (darwin/amd64)

========================= END DumpRequest =========================

Error: Get https://api.exercism.io/v1/solutions/latest?exercise_id=hello-world&track_id=elixir: net/http: TLS handshake timeout
```

If I go to the api endpoint using curl or in chrome it returns what appears to be an empty JSON object, with no TLS handshake error.

I am not behind a proxy or a firewall.

Any help would be appreciated.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.