When I try to run the identify_file function from the python file IdentifyFile.py in the Identification folder I get the following error...
Exception: Error identifying file: { "error": { "code": "BadRequest", "message": "Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)." } }
I can successfully run the function through terminal, but when I try to call the function with pre filled arguments I get the error above. This is what it looks like when I call for the function in a python file.
I thought maybe I had to convert it to a "Guid", which I did but then I just got this error..... (.-.)
File "IdentifyFile.py", line 43, in identify_file str(force_short_audio).lower() == "true") File "/Users/txt-19/Desktop/duckAi-py/Identification/IdentificationServiceHttpClientHelper.py", line 265, in identify_file if len(test_profile_ids) < 1: TypeError: object of type 'UUID' has no len()
Never mind I got it lol. I was supposed to put the userId into an array like this...
identify_file(subscriptionKey,audioFilePath,True, ['ea262cdd-2402-4418-b698-0272e8873dc3'])
When I try to run the identify_file function from the python file IdentifyFile.py in the Identification folder I get the following error...
Exception: Error identifying file: { "error": { "code": "BadRequest", "message": "Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)." } }
I can successfully run the function through terminal, but when I try to call the function with pre filled arguments I get the error above. This is what it looks like when I call for the function in a python file.identify_file(subscriptionKey,audioFilePath,True, 'ea262cdd-2402-4418-b698-0272e8873dc3')
I thought maybe I had to convert it to a "Guid", which I did but then I just got this error..... (.-.)
File "IdentifyFile.py", line 43, in identify_file str(force_short_audio).lower() == "true") File "/Users/txt-19/Desktop/duckAi-py/Identification/IdentificationServiceHttpClientHelper.py", line 265, in identify_file if len(test_profile_ids) < 1: TypeError: object of type 'UUID' has no len()