Discussions

Ask a Question
Back to All

Bug with upload audio file

Hi,

There is a bug when trying to upload an audio through the API.

I'm using python:


import requests

url = "https://api.d-id.com/audios"

files = { "audio": ("audio_file.wav", open("./audio_file.wav", "rb"), "audio/wav") }
headers = {
"accept": "application/json",
"authorization": "Bearer ...."

response = requests.post(url, files=files, headers=headers)

print(response.text)


The error is:

StatusCode: 500 . Internal Server Error.

Please, It is the second time that I have the same problem, you corrected it a long time ago but now the error has returned.