HubSpot / hubspot-php

HubSpot PHP API Client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Retry on 524

gemal opened this issue · comments

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?

commented

RetryMiddlewareFactory::createMiddlewareByHttpCodes([524], Delay::getConstantDelayFunction())