Internal server error when calling Cognitive Service APIs

Romain Huynh Van Thieng 5 Reputation points
2024-01-16T08:57:28.5366667+00:00

Hello everyone, I'm currently facing unsolvable error when I'm calling OpenAI APIs with OpenAI python client : Invalid response object from API: '{ "statusCode": 500, "message": "Internal server error", "activityId": "588bbae0-0e98-4755-af63-1484b65c7e01" }' (HTTP response code was 500) I face the same behavior since yesterday, there were no improvment at any given time. When I switch resource, it's properly working, it's specific to a given resource. Thanks in advance for support.

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,143 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Romain Huynh Van Thieng 5 Reputation points
    2024-01-19T13:00:02.7233333+00:00

    Hello Vasavi, there were no specific models involved as I wanted to perform a GET list of models available. But it seems to work now on the realm Sweden Central, so it was probably infrastructure related.

    1 person found this answer helpful.
    0 comments No comments

  2. VasaviLankipalle-MSFT 18,566 Reputation points
    2024-01-19T19:55:59.33+00:00

    Hello @Romain Huynh Van Thieng , I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that ""The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer.

    Issue: Internal server error when calling Cognitive Service APIs. client : Invalid response object from API: '{ "statusCode": 500, "message": "Internal server error", "activityId": "588bbae0-0e98-4755-af63-1484b65c7e01" }' (HTTP response code was 500)

    Solution: This error occurred when tried GET list of models available with Sweden Central region. Looks like it was a temporary issue. But it seems to work now on the realm Sweden Central.

    However, always refer to the models page for the region availability.: https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models

    If you have any other questions or are still running into more issues, please let me know.

    Thank you again for your time and patience throughout this issue.

    Regards,
    Vasavi

    Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.

    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.