You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When MangoPay API returns a 5XX, we receive a generic MangoPay::ResponseError that we must decode to identify from the response code that it's a network/internal error (a 502 for example).
It could ease error handling for the SDK users to raise a specific exception in those cases. For example, it allows them to silently retries on network errors, and immediatly raise in case of client (4xx) error.
The text was updated successfully, but these errors were encountered:
kaderate
changed the title
Smoothly network errors
Raise a specific exception when API fails because of a network errors
Aug 6, 2024
kaderate
changed the title
Raise a specific exception when API fails because of a network errors
Raise a specific exception when API fails with a 5XX HTTP response
Aug 6, 2024
When MangoPay API returns a 5XX, we receive a generic
MangoPay::ResponseError
that we must decode to identify from the response code that it's a network/internal error (a 502 for example).It could ease error handling for the SDK users to raise a specific exception in those cases. For example, it allows them to silently retries on network errors, and immediatly raise in case of client (4xx) error.
The text was updated successfully, but these errors were encountered: