Share via

The server had an error processing your request. Sorry about that! You can retry your request, or contact us through an Azure support request at: https://go.microsoft.com/fwlink/?linkid=2213926 if you keep seeing this error

A YASWANTH 0 Reputation points
2025-09-17T12:59:11.1966667+00:00
result": "Error processing audio: Transcription error: Transcription failed with status code 500: {\n  \"error\": {\n    \"message\": \"The server had an error processing your request. Sorry about that! You can retry your request, or contact us through an Azure support request at: https://go.microsoft.com/fwlink/?linkid=2213926 if you keep seeing this error. (Please include the request ID b32e155c-1817-4499-a383-47fb0ac55935 in your email.)\",\n    \"type\": \"server_error\",\n    \"param\": null,\n    \"code\": null\n  }\n}"

i can view this error when i am trying to call gpt-4o-mini-transcribe

2025-03-20

Azure OpenAI in Foundry Models
0 comments No comments

1 answer

Sort by: Most helpful
  1. Aryan Parashar 3,695 Reputation points Microsoft External Staff Moderator
    2025-09-18T10:09:09.89+00:00

    Hi A Yaswanth,

    Status code 500 indicates a server-side error. It can occur due to a temporary service outage, high system load, or other internal issues.

    I tried using gpt-4o-mini-transcribe deployed in eastus2 and it worked fine for me.

    Here is the code i used:

    import requests
    
    
    api_key = "<YOUR-API-KEY>"
    endpoint = "<YOUR-ENDPOINT>"
    deployment = "gpt-4o-mini-transcribe"
    api_version = "2025-03-01-preview"
    
    url = f"{endpoint}/openai/deployments/{deployment}/audio/transcriptions?api-version={api_version}"
    
    headers = {
        "Authorization": f"Bearer {api_key}"
    }
    
    files = {
        "file": ("file.mp3", open(r"<YOUR-AUDIO-FILE-PATH>", "rb"), "audio/mpeg")
    }
    
    data = {
        "model": deployment
    }
    
    response = requests.post(url, headers=headers, data=data, files=files)
    
    print(response.status_code)
    print(response.json())
    
    
    

    Feel free to accept it as an answer.

    Thankyou for reaching out to the Microsoft QNA Portal.

    Was this answer helpful?

    0 comments No comments

Your answer

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