curl icon indicating copy to clipboard operation
curl copied to clipboard

retry arguments are ignored

Open gkorland opened this issue 2 years ago • 1 comments

    - 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

gkorland avatar Apr 28 '22 08:04 gkorland

I see no trouble with this when connecting to another host, like example.com:

image

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.)

memark avatar May 28 '22 06:05 memark