Empty webhook payload API

I’m not sure if this has already been reported, but I’ve encountered this issue multiple times when using webhooks.

When a request takes slightly longer to process, the webhook sometimes returns an empty result, even though I explicitly filter for the response.completed event type.

For example:

if event.type == "response.completed":
    response_id = event.data.id
    response = openai_client.responses.retrieve(response_id)

    metadata = response.metadata or {}
    output_text = response.output_text

In these cases, response.output_text is empty, despite the response being marked as completed.

What could be causing this, and is there a recommended way to handle or avoid it?

1 Like

Hey @StroeAndre, Apologies for the inconvenience. Based on the first look it seems like we might need some further details relating to your setup and some raw headers. Since they will be personal to you. I encourage that you open a request with us at support@openai.com. Please make sure to include your forum username and the link to this discussion so that our team can track the progress. That way we can gather the required details and resolve it for you. Thank you!

1 Like