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
The API doc says that authorize() returns a 409 status code and a reason message when a request is denied due to throttling. The Ruby client swallows the status code, so I have to parse the error_message. It would be nice to set the @error_code. Here’s an example response:
The way the ruby plugin currently works is that the error code is not the http status code, but a 3scale error code which used to be sent as an attribute of the xml response sent and looked something like this:
<error code="application_not_found">application with id="foo" was not found</error>
This is no longer present when making calls that fail, however we need to think carefully about how to change this to ensure that this isn’t breaking anything else instead.
https://support.3scale.net/forum/topics/threescale-client-authrep-doesn-t-return-error_code-on-throttled-requests
The API doc says that authorize() returns a 409 status code and a reason message when a request is denied due to throttling. The Ruby client swallows the status code, so I have to parse the error_message. It would be nice to set the @error_code. Here’s an example response:
The text was updated successfully, but these errors were encountered: