Need Help Implementing go-resty retrycondition: Best Practices and Examples?

10 Replies, 1999 Views

Honestly, I’d recommend using a combination of status codes and error types. For go-resty retrycondition, I usually check for network errors (like `net.Error`) and specific HTTP codes.

Here’s a tip: use `errors.As()` to check for network errors. It’s cleaner and more reliable.

Also, check out this blog post on advanced retry strategies—it’s super helpful: [link].

Messages In This Thread



Users browsing this thread: 1 Guest(s)