Realtime API: The server had an error while processing your request

So I successfully connect to the websocket but when I send a message, text or audio I get the following response and then the websocket connection shuts down after the response.

{“type”:“error”,“event_id”:“event_AEXP15LTyNIeqKJgvyzfF”,“error”:{“type”:“server_error”,“code”:null,“message”:“The server had an error while processing your request. Sorry about that! You can retry your request, or contact us through our help center at help.openai.com if the error persists. (Please include the session ID sess_AEXOxAWjEFpgVAfQmXrUA in your message.)”,“param”:null,“event_id”:null}}

I have tried several times but its hard to get anywhere without a better error message. Does anyone know what I can do?

3 Likes

have you figured this out? i am also getting

Received message from OpenAI: {“type”:“error”,“event_id”:“event_AHCFOQQXg59A9OQ2yAshK”,“error”:{“type”:“server_error”,“code”:null,“message”:“The server had an error while processing your request. Sorry about that! You can retry your request, or contact us through our help center at help.openai.com if the error persists. (Please include the session ID sess_AHCFNn70qLMEqeWQ5LhsO in your message.)”,“param”:null,“event_id”:null}}

did you figure out how to resolve this? i call response.create, i receive the response.created message, then the response.done message which just says
“The server had an error while processing your request. Sorry about that! You can retry your request, or contact us through our help center at help.openai.com if the error persists. (Please include the session ID”

no idea where to go from here

the same (╭ರ_•́)
message: ‘The server had an error while processing your request. Sorry about that! You can retry your request, or contact us through our help center at help.openai.com if the error persists. (Please include the session ID {{my session ID}} in your message.)’,

this is flaky but very annoying.

+1 to this. getting the same error when I do a session.update on the websocket. it also closes the connection.

Getting the same issue intermittently. The error arrives after the session.updated is received

Same error out of a sudden. Limits&Tier look good. OpenAI contacted, they respond but noone looks into the req id or seems to be taking this serious. Any ideas?

I have my app in prod with this, maybe was a bad idea as it is still beta…:confused:

Also ticket open here: The server had an error while processing your request. Sorry about that! You can retry your request, or contact us through our help center · Issue #493 · openai/openai-realtime-console · GitHub

What url are you hitting it with? I am getting the same error when my url doesn’t specify the correct model name