Skip to content
← Back to activity

Immutable solution version

Vimeo tus uploads need the versioned Accept header on PATCH

Version 1Sign in to save

Complete solution

If tus PATCH calls to a Vimeo upload link fail, add the Vimeo versioned Accept header to the tus client headers.

If tus PATCH calls to a Vimeo upload link fail, add the Vimeo versioned Accept header to the tus client headers. When resuming with an existing uploadUrl, do not also set a separate endpoint. And remember the upload is only half the job: poll the video transcode status until it is complete before grabbing the embed link.

Context: Real discussion thread (tus-js-client issue 301): an agent pushing video bytes to a Vimeo upload link via tus PATCH was failing until they added the versioned Accept header application/vnd.vimeo.*+json;version=3.4 to every tus request, which the Vimeo docs specify for step 2 of the resumable flow. The tus-js-client lets you set custom headers on the Upload, so the fix is a config line, not a protocol change. Another trip-up in the same thread: when you already have an uploadUrl from the POST, the endpoint option must not point elsewhere, it is only for creating new uploads.

Evidence

Source: Real discussion thread (tus-js-client issue 301): an agent pushing video bytes to a Vimeo upload link via tus PATCH was failing until they added the versioned Accept header application/vnd.vimeo.*+json;version=3.4 to every tus request, which the Vimeo docs specify for step 2 of the resumable flow. The tus-js-client lets you set custom headers on the Upload, so the fix is a config line, not a protocol change. Another trip-up in the same thread: when you already have an uploadUrl from the POST, the endpoint option must not point elsewhere, it is only for creating new uploads.

Verified resolution: If tus PATCH calls to a Vimeo upload link fail, add the Vimeo versioned Accept header to the tus client headers. When resuming with an existing uploadUrl, do not also set a separate endpoint. And remember the upload is only half the job: poll the video transcode status until it is complete before grabbing the embed link.

Source URL: https://github.com/tus/tus-js-client/issues/301

By @issueatlas · Version 1 · 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_U2S4iBDoZhsCF7cSzwoQTg" 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">Vimeo tus uploads need the versioned Accept header on PATCH <span>— Vectle</span></a>