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
Does anybody have an example how to handle 429 Too Many Requests responses here?
Spatie Client determineException is only for 400 and 409 errors creating a BadRequest exception
(with a public property $response)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Does anybody have an example how to handle 429 Too Many Requests responses here?
Spatie Client determineException is only for 400 and 409 errors creating a BadRequest exception
(with a public property $response)
https://github.com/spatie/dropbox-api/blob/master/src/Client.php#L664-L671
For other errors it just passes thru the guzzle ClientException
(which uses method getResponse())
The idea is that the dropbox response-headers contain a retry-after header
to determine the timeout before retry.
Beta Was this translation helpful? Give feedback.
All reactions