jeffbski / jeffbski/wait-on

Parse Error: Expected HTTP on localhost

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

Description

Hello,
I'm facing some issue after updating from v6.0.0 to v7.2.0.
Trying to run wait-on by defining scripts in npm in my angular project:

```json
"scripts": {
"test:accessibility": "npm-run-all -p -r start check-accessibility",
"check-accessibility": "wait-on http://localhost:4600/ && hint --debug http://localhost:4600",
}
```

The server was starting, but nothing more was heppening. I used --verbose parameter and here is the errors I've got:
> making HTTP(S) head request to url:http://localhost:4600/ ...
> HTTP(S) error for http://localhost:4600/ Error: Parse Error: Expected HTTP/

As mentioned it was working well on v6.0.0. I also noticed that when I use 127.0.0.1 instead of localhost then it works well.

![image](https://github.com/jeffbski/wait-on/assets/10810899/7e3419da-d7fb-4643-9542-55d2cdf6e3ca)

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.