Skip to content

Commit d997948

Browse files
authored
docs: add wait-on workaround advice (Node.js 18) (#813)
* docs: add wait-on workaround advice (Node.js 18) * add backticks for wait-on
1 parent 804c7fa commit d997948

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,14 @@ See [example-wait-on.yml](.github/workflows/example-wait-on.yml) workflow file.
734734

735735
If this action times out waiting for the server to respond, please see [Debugging](#debugging) section in this README file.
736736

737+
#### `wait-on` with Node.js 18+
738+
739+
Under Node.js version 18 and later, `wait-on` may fail to recognize that a `localhost` server is running. This affects development web servers which do not listen on both IPv4 and IPv6 network stacks.
740+
741+
- Check your server documentation to see if it can be started using `0.0.0.0` (all addresses) and use this if available. If this option is not available or does not resolve the issue then carry on to the next steps:
742+
- If the action log shows that `wait-on` is failing to connect to `127.0.0.1`, replace `localhost` by `[::1]` (the IPv6 loopback address)
743+
- If the action log shows that `wait-on` is failing to connect to `::1`, replace `localhost` by `127.0.0.1` (the IPv4 loopback address)
744+
737745
### Custom install command
738746

739747
If you want to overwrite the install command

0 commit comments

Comments
 (0)