generated from deepgram/oss-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 114
Closed
Description
What is the current behavior?
When calling deepgram.listen.prerecorded.v('1').transcribe_file(payload, options) followed immediately by deepgram.manage.v('1').get_usage_request(DEEPGRAM_PROJECT_ID, requestId), an error occurs in the file client.py at line 1004. The variable result has a value of None.
Steps to reproduce
- Call
deepgram.listen.prerecorded.v('1').transcribe_file(payload, options). - Immediately call
deepgram.manage.v('1').get_usage_request(DEEPGRAM_PROJECT_ID, requestId)withDEEPGRAM_PROJECT_IDandrequestId.
Expected behavior
The get_usage_request function should return valid usage information without returning None, and the package should handle the error if the data is not available yet.
Please tell us about your environment
- Operating System/Version: Windows 10
- Python Version: v3.11
Other information
The issue appears to be related to the delay in retrieving usage information. Even if the information is unavailable, the error should still be handled properly by the package.
davidvonthenenjpvajda
Metadata
Metadata
Assignees
Labels
No labels