Expected Behavior
SDK fails to display detailed error message when using client.tasks.create() for uploading videos to index
Actual Behavior
Like the API call, it should return message why the upload failed or have some more information in the response body
Steps to Reproduce
- Upload a low resolution or unsupported video to index using local file: video_file parameter in sdk
- Upload a low resolution or unsupported video to index using API with files parameter
- API reponse which is better:
- SDK response which gives no information on that went wrong:
Detailed Description
I noticed this during twelvelabs AI hackathon hosted in NYC during media week, I spent 2 hrs just debugging why my video is not getting pushed to index, with the help of twelvelabs team (james, jin and other folks) we found out the actual cause by using API, since better error display makes API better than SDK. I would like to propose this change to make SDK response messages more useful
Possible Solution
Display better errors when using SDK
steps to reproduce:
main.ipynb
Expected Behavior
SDK fails to display detailed error message when using client.tasks.create() for uploading videos to index
Actual Behavior
Like the API call, it should return message why the upload failed or have some more information in the response body
Steps to Reproduce
Detailed Description
I noticed this during twelvelabs AI hackathon hosted in NYC during media week, I spent 2 hrs just debugging why my video is not getting pushed to index, with the help of twelvelabs team (james, jin and other folks) we found out the actual cause by using API, since better error display makes API better than SDK. I would like to propose this change to make SDK response messages more useful
Possible Solution
Display better errors when using SDK
steps to reproduce:
main.ipynb