Skip to content

[HttpClient] RetryableHttpClient sends to RetryStrategyInterface::getDelay always empty $responseContent #53723

Answered by nicolas-grekas
Tetragramat asked this question in Q&A
Discussion options

You must be logged in to vote

IIRC, you need to make your strategy return null when shouldRetry is called with a null responseContent.
Then, getDelay will receive the content as expected.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Tetragramat
Comment options

@nicolas-grekas
Comment options

Answer selected by Tetragramat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #53714 on February 01, 2024 13:19.