go-resty / resty

Simple HTTP and REST client library for Go
MIT License
9.98k stars 706 forks source link

Breaks application from Ctrl-C handling #758

Closed sergei-sh closed 2 days ago

sergei-sh commented 10 months ago

Whenever retries happen - due to either unavailable resource or other error - it is not possible to close the host application by Ctrl-C. That is very annoying.

2023/11/29 08:31:22.644011 ERROR RESTY Post "/v2/query": unsupported protocol scheme "", Attempt 1
2023/11/29 08:31:23.144797 ERROR RESTY Post "/v2/query": unsupported protocol scheme "", Attempt 2
2023/11/29 08:31:23.765467 ERROR RESTY Post "/v2/query": unsupported protocol scheme "", Attempt 3
2023/11/29 08:31:25.194017 ERROR RESTY Post "/v2/query": unsupported protocol scheme "", Attempt 4
2023/11/29 08:31:28.014949 ERROR RESTY Post "/v2/query": unsupported protocol scheme "", Attempt 5
^C2023/11/29 08:31:34.591657 ERROR RESTY Post "/v2/query": unsupported protocol scheme "", Attempt 6
jeevatkm commented 7 months ago

@sergei-sh Thanks for reaching out. Can you please provide a code snippet to reproduce the issue?