-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't make wait-on work in Github action #86
Comments
same here. but I can access it from browser. Also tcp succeeds
|
That's very strange, I'll see if I can figure anything out with this. I
appreciate you mentioning it.
…On Wed, May 26, 2021 at 9:51 PM matart15 ***@***.***> wrote:
same here. http://localhost:4100/graphql http://localhost:4100/ both
throw error. but I can access it from browser. Also tcp succeeds
$ wait-on -t 300 -v http://localhost:4100/graphql
waiting for 1 resources: http://localhost:4100/graphql
making HTTP(S) head request to url:http://localhost:4100/graphql ...
HTTP(S) error for http://localhost:4100/graphql Error: Request failed with status code 500
making HTTP(S) head request to url:http://localhost:4100/graphql ...
HTTP(S) error for http://localhost:4100/graphql Error: Request failed with status code 500
wait-on(82273) Timed out waiting for: http://localhost:4100/graphql; exiting with error
$ wait-on -t 300 -v tcp:4100
waiting for 1 resources: tcp:4100
making TCP connection to 4100 ...
TCP connection successful to host:localhost port:4100
wait-on(82530) complete
✨ Done in 0.67s.
done
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#86 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAABMOPM6PCM4XLUSNITWM3TPWXUHANCNFSM4VRZ2VKQ>
.
--
Jeff Barczewski
Founder of CodeWinds
http://codewinds.com/
Live and Online developer training
|
Has anyone found any solution for this? I'm having the exact same problem and something strange is happening: it seems to work with |
If you're using cypress, this sounds interesting: bahmutov/start-server-and-test#287 (comment) |
also having the same issue here, unable to |
For me this was related to ipv6. It also happens with other HTTP request node libraries. Node.js seems to resolve |
In my case, I wanted to run electron with a React App, then the script on package.js was "electron": "wait-on tcp:3000 && electron ." change for "electron": "wait-on http://127.0.0.1:3000 && electron ." fix the issue. |
Some people are having better luck in GitHub Actions with the IP |
There is also related info in: cypress-io/github-action#802 For anyone having issues with Node 18 runners on GitHub Actions, try with Node 20 that has different defaults. At the same time GHA's IPv6 hosts/localhost configuration used to be quite specific, so you may end up having to use |
Hi Jeff.
Thanks for an awesome library, but I can't get it to work on Github actions.
I use this command:
I can tell from the output that the server is up and running on port 3000, but wait-on only prints this output:
When I test it locally it works perfect?
The text was updated successfully, but these errors were encountered: