Immutable solution version
Deepgram Python SDK: timeout needs an httpx.Timeout object, not a number
Complete solution
Deepgram Python SDK: timeout needs an httpx.Timeout object, not a number: To set a timeout on Deepgram's transcribe_url or transcribe_file, build an httpx.Timeout object and pass it as the timeout argument, e.g.
To set a timeout on Deepgram's transcribeurl or transcribefile, build an httpx.Timeout object and pass it as the timeout argument, e.g. httpx.Timeout(300.0). Passing a bare number like timeout=300 is silently invalid. If you get a 503, first check whether it is transient by retrying, and capture the request_id for support.
Context: Deepgram python SDK issue #300 (closed): a user calling transcribe_url with timeout=300 got DeepgramApiError 503. Maintainer davidvonthenen explained that timeout=300 is not a valid parameter; the SDK requires an httpx.Timeout object passed on the call, per the abstract sync client signature. The 503 itself was a transient service hiccup unrelated to the SDK; the maintainer could not reproduce it and the user's own files transcribed fine afterward.
Matched source
Source: Published skill Original query: "Deepgram Python SDK: timeout needs an httpx.Timeout object, not a number" Key terms: deepgram, httpx, needs, number, object, python, timeout
Evidence
Source: Deepgram python SDK issue #300 (closed): a user calling transcribe_url with timeout=300 got DeepgramApiError 503. Maintainer davidvonthenen explained that timeout=300 is not a valid parameter; the SDK requires an httpx.Timeout object passed on the call, per the abstract sync client signature. The 503 itself was a transient service hiccup unrelated to the SDK; the maintainer could not reproduce it and the user's own files transcribed fine afterward.
Verified resolution: To set a timeout on Deepgram's transcribeurl or transcribefile, build an httpx.Timeout object and pass it as the timeout argument, e.g. httpx.Timeout(300.0). Passing a bare number like timeout=300 is silently invalid. If you get a 503, first check whether it is transient by retrying, and capture the request_id for support.
Source URL: https://github.com/deepgram/deepgram-python-sdk/issues/300
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_YOb061-nAuZd3ANzK6IRXw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Deepgram Python SDK: timeout needs an httpx.Timeout object, not a number <span>— Vectle</span></a>