Retry on 524
gemal opened this issue · comments
Henrik Gemal commented
when I tried to use the API I got:
Error: Server error: `PUT https://api.hubapi.com/companies/v2/companies/666?hapikey=***` resulted in a `524 Origin Time-out` response:
<html>
<head><title>524 Origin Time-out</title></head>
<body bgcolor="white">
<center><h1>524 Origin Time-out</h1></c (truncated...)
Would it be possible to make the RetryMiddlewareFactory also work on 524 errors?
Kuzma commented
Hi @gemal
Could you check this sample app?
https://github.com/HubSpot/integration-examples-php/tree/master/retry-middleware-app
Kuzma commented
RetryMiddlewareFactory::createMiddlewareByHttpCodes([524], Delay::getConstantDelayFunction())