404 reply when recursively listing input items with Responses API

Ola Ingvarsson 25 Reputation points
2025-05-07T10:12:00.3766667+00:00

When listing input items with the Responses API we get the first 20 items. When we try to list the next 20 items using last_id and the after parameter we get an error message like this:

NotFoundError: 404 No item found with id 'msg_681b2a06fbfc8190b8028aa84411af720d7696e647f77df5'

We can see that the message with the above id indeed exists when we list the first 20 items.

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
4,087 questions
{count} votes

1 answer

Sort by: Most helpful
  1. JAYA SHANKAR G S 3,960 Reputation points Microsoft External Staff Moderator
    2025-05-29T09:11:36.0433333+00:00

    Hello @Ola Ingvarsson ,

    We have received an update from our product team regarding the issue. It has been confirmed that there is a backend bug which causes the system to compare message IDs in different formats. Due to this mismatch, the system is unable to locate the correct message and responds with a 404 Not Found error.

    At this time, there is no ETA for the resolution of this issue. However, please rest assured that our team is actively monitoring the situation, and we will keep you informed as soon as a fix is implemented.

    We appreciate your patience and understanding. Please feel free to reach out if you have any further questions or concerns via comments

    Thank you

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.