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 an API call results in an error, the FluidError instance has the FluidResponse received in args[0] and one can get at the headers from the response via err.args[0].response.headers (where err is the FluidError instance).
It would be nice if the X-FluidDB-* error headers were more easily accessible. Similarly, the request id is in err.args[0].request_id and could be promoted to more prominence in FluidError.
The text was updated successfully, but these errors were encountered:
Just using self.response = response in FluidError would make things more explicit (rather than relying on the user to know that Python exceptions have an args list).
When an API call results in an error, the
FluidError
instance has theFluidResponse
received inargs[0]
and one can get at the headers from the response viaerr.args[0].response.headers
(whereerr
is theFluidError
instance).It would be nice if the
X-FluidDB-*
error headers were more easily accessible. Similarly, the request id is inerr.args[0].request_id
and could be promoted to more prominence inFluidError
.The text was updated successfully, but these errors were encountered: