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
Hello! I am trying to use the built-in feature of retrying API requests as explained in here: src/RetrySettings.php. However it is not clear what value to pass in retryableCodes.
Hey there @lezhnev74 - this is a great question. You'll want to use the constants with string values (ApiStatus::DEADLINE_EXCEEDED), as that is what is keyed in to being used by the RetryMiddleware.
I can definitely see where the confusion came about due to the tests and the annotated return type on RetrySettings::getRetryableCodes.
@jdpedrie would you have a few cycles to help update the return type/tests?
Hello! I am trying to use the built-in feature of retrying API requests as explained in here:
src/RetrySettings.php
. However it is not clear what value to pass inretryableCodes
.There are two options:
pass the string value of
\Google\ApiCore\ApiStatus
constants likeApiStatus::DEADLINE_EXCEEDED
RetrySettings.php
pass the integer value of
\Google\Rpc\Code
constants likeCode::DEADLINE_EXCEEDED
What type I should use?
The text was updated successfully, but these errors were encountered: