godo icon indicating copy to clipboard operation
godo copied to clipboard

422 responses can succeed on retry

Open nicois opened this issue 5 months ago • 1 comments

Some operations (such as assigning a reserved IP address to a newly-created droplet) can return a 422 HTTP status code. According to the standards, 422 errors are not supposed to be fixable by retrying - but in these situations, they are.

The godo package automatically retries 429 and 500 responses, but not 422. Either the retry logic should be broadened to include 422, or the endpoints which return 422 for potentially transient reasons should be altered.

nicois avatar Jul 01 '25 07:07 nicois

Hey @nicois thank you for the suggestion and I agree 422 response code also implies the data in the request was off and we shouldn't retry ideally for 422. Can you please point to a few endpoints where you see this behaviour so that we can talk to the concerned team and take necessary action on this

kishlay-singh-DO avatar Sep 24 '25 16:09 kishlay-singh-DO