Lilypad-Tech / lilypad

Run AI workloads easily in a decentralized GPU network. https://www.youtube.com/watch?v=yQnB2Yxia4Y
https://lilypad.tech
Apache License 2.0
52 stars 16 forks source link

Report error response bodies #420

Closed bgins closed 2 weeks ago

bgins commented 2 weeks ago

Our resource provider and job creator use an internal HTTP package that relies on hashicorp/go-retryablehttp for retries. On reaching the maximum number of retries, the client reports an error like:

POST http://localhost:8080/api/v1/resource_offers giving up after 11 attempt(s)

This error message indicates the endpoint and number of retries, but does not report the response error body. Let's implement a custom error handler to report error bodies so users will know what went wrong.