caseyamcl / guzzle_retry_middleware

Middleware for Guzzle v6/7+ that automatically retries HTTP requests on 429, 503 responses.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GuzzleRetryAfterHandler

glebstar opened this issue · comments

[Symfony\Component\Debug\Exception\FatalThrowableError]
Call to undefined function App\Models\GuzzleRetryAfterHandler()

HI @glebstar .. It looks like I made a typo in the documentation! Thanks for catching that.

I have corrected it. Instead of..

$stack->push(GuzzleRetryAfterHandler());

...try...

$stack->push(GuzzleRetryMiddleware());

Also, it looks like you might need to import the class namespace.