curl
curl copied to clipboard
retry arguments are ignored
- name: Verify with curl
uses: wei/[email protected]
with:
args: http://localhost:5000/chat --connect-timeout 5 --max-time 10 --retry 5 --retry-delay 0 --retry-max-time 40 -H "Content-Type:application/json" -d '{"message":"I am crazy"}'
I still get this error:
curl: (7) Failed to connect to localhost port 5000 after 0 ms: Connection refused
I see no trouble with this when connecting to another host, like example.com:
![image](https://user-images.githubusercontent.com/318504/170814276-b384ffaf-f106-4c1a-9724-b40d6219d207.png)
Can you try changing the host? (I assume the chat application is not running on the GitHub Actions runner itself ("localhost" here), but rather on some other host.)