Azure OpenAI Assistants API: Persistent 500 Server Error on Request when file uproad

Ayu Kuriki 20 Reputation points
2024-08-23T02:10:23.9833333+00:00

I am encountering a persistent issue with the Azure OpenAI Assistants API when attempting to upload a file for use with the Code Interpreter feature.

The request to the Azure OpenAI assistant creation API was successful, but we could not upload the file only.

Here are the details of the problem:Issue Description:

When making an API call to upload a file with the "assistants" purpose, I consistently receive a 500 Internal Server Error. This occurs specifically when using the Azure OpenAI service.

(The same code and file upload succeed when sent directly to the OpenAI API)

request code(using ruby-openai gem):

        @openai_client.files.upload(
          parameters: {
            file: File.open(path_to_file),
            purpose: 'assistants',
          }
        )

Here are the details:Error message:

Request ID: b429bbae-02d5-4035-9914-9dac5a8ed3ad

Server error: 500
Response body: {"error"=>{"message"=>"The server had an error processing your request. Sorry about that! You can retry your request, or contact us through our help center at oai-assistants@microsoft.com if you keep seeing this error. (Please include the request ID b429bbae-02d5-4035-9914-9dac5a8ed3ad in your email.)", "type"=>"server_error", "param"=>nil, "code"=>nil}}

If anyone has information regarding this issue, I would greatly appreciate a response.

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

Accepted answer
  1. navba-MSFT 23,450 Reputation points Microsoft Employee
    2024-09-04T02:30:17.5566667+00:00

    @Ayu Kuriki Apologies for the delay in getting back.

    .

    I have heard back from the Product Owners.

    Cause:

    There was an issue in the backend service that didn't handle the resource move between subscriptions gracefully and let to resource going into bad state.

    Current status:

    This issue should be fixed now, and you shouldn't get the 500 Internal Server Error anymore when making an API call to upload a file with the assistants

    .

    Hope this helps.

    **

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.