jeffbski / jeffbski/wait-on

Always succeeds with https urls

Open
#100 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2k
Forks
87
PR merge metrics
No merged PRs in 30d

Description

Given a non-existing random URL using HTTP:

```
$ curl -D - http://bla.blu.bli
HTTP/1.1 403 Forbidden
Date: Mon, 14 Jun 2021 20:16:38 GMT
Server: Apache
Content-Length: 202
Content-Type: text/html; charset=iso-8859-1

403 Forbidden

...
```

I correctly get an error message from `wait-on`:

```
$ npx wait-on --timeout 2000 http://bla.blu.bli && echo 'foo'
npx: installed 13 in 2.019s
Error: Timed out waiting for: http://bla.blu.bli
```

This is perfectly fine! Nevertheless, when using HTTPS on the same random URL, I get:

```
$ curl -D - https://bla.blu.bli
curl: (60) SSL: no alternative certificate subject name matches target host name 'bla.blu.bli'
More details here: https://curl.se/docs/sslcerts.html

$ npx wait-on --timeout 2000 https://bla.blu.bli && echo 'foo'
npx: installed 13 in 2.211s
foo
```

Why does wait-on succeeds here? I tried with other random HTTPS URLS and wait-on always succeeds.

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.