Error {'code': 524, 'message': 'Gateway timeout.', 'param': None, 'type': 'cf_gateway_timeout'}}

Very often receiving error {‘code’: 524, ‘message’: ‘Gateway timeout.’, ‘param’: None, ‘type’: ‘cf_gateway_timeout’}}

I think this is server side error. im calling the api from a long running aws lambda with 15 minutes timeout, but receive this error at the 10 minutes mark.
Anyone can help?

1 Like

I’m getting the same kind of errors all day today:
current token count: 4388
OpenAI API returned an APIError:
Gateway timeout. {“error”:{“code”:524,“message”:“Gateway timeout.”,“param”:null,“type”:“cf_gateway_timeout”}} 524 {‘error’: {‘code’: 524, ‘message’: ‘Gateway timeout.’, ‘param’: None, ‘type’: ‘cf_gateway_timeout’}} {‘Date’: ‘Mon, 22 May 2023 06:22:31 GMT’, ‘Content-Type’: ‘application/json’, ‘Content-Length’: ‘92’, ‘Connection’: ‘keep-alive’, ‘X-Frame-Options’: ‘SAMEORIGIN’, ‘Referrer-Policy’: ‘same-origin’, ‘Cache-Control’: ‘private, max-age=0, no-store, no-cache, must-revalidate, post-check=0, pre-check=0’, ‘Expires’: ‘Thu, 01 Jan 1970 00:00:01 GMT’, ‘Server’: ‘cloudflare’, ‘CF-RAY’: ‘7cb2e86deacf10d5-ORD’} Retrying after error: Gateway timeout. {“error”:{“code”:524,“message”:“Gateway timeout.”,“param”:null,“type”:“cf_gateway_timeout”}} 524 {‘error’: {‘code’: 524, ‘message’: ‘Gateway timeout.’, ‘param’: None, ‘type’: ‘cf_gateway_timeout’}} {‘Date’: ‘Mon, 22 May 2023 06:22:31 GMT’, ‘Content-Type’: ‘application/json’, ‘Content-Length’: ‘92’, ‘Connection’: ‘keep-alive’, ‘X-Frame-Options’: ‘SAMEORIGIN’, ‘Referrer-Policy’: ‘same-origin’, ‘Cache-Control’: ‘private, max-age=0, no-store, no-cache, must-revalidate, post-check=0, pre-check=0’, ‘Expires’: ‘Thu, 01 Jan 1970 00:00:01 GMT’, ‘Server’: ‘cloudflare’, ‘CF-RAY’: ‘7cb2e86deacf10d5-ORD’}. Retry attempt 1 of 3

I am getting the 500 errors a lot in the last 48 hours. Is this currently being addressed by the OpenAI team?

The server had an error processing your request. Sorry about that! You can retry your request, or contact us through our help center at help.openai.com if you keep seeing this error. (Please include the request ID xxxxxxxx in your email.

1 Like

when the token count is under 4k for GPT-4 it seems to work, but I get this error a lot when token count is over 4k… What happened to the 8k window?

another day and the error continues (and we are billed for it…). Ive opened a ticket to openai but didnt get a response or ack…

[ERROR] APIError: Gateway timeout.
{
“error”: {
“code”: 524,
“message”: “Gateway timeout.”,
“param”: null,
“type”: “cf_gateway_timeout”
}
}
524 {‘error’: {‘code’: 524, ‘message’: ‘Gateway timeout.’, ‘param’: None, ‘type’: ‘cf_gateway_timeout’}} {‘Date’: ‘Thu, 25 May 2023 17:03:32 GMT’, ‘Content-Type’: ‘application/json’,