tus-js-client: Error: tus: unexpected response while uploading chunk, originated from request (response code: 408, response text: stream timeout)

Describe the bug I tried using tus-js-client for uploading videos to CloudFlare Stream. Video files are about 1~5GB. Most of the times (49/50), I got this this error

Error: tus: unexpected response while uploading chunk, originated from request (response code: 408, response text: stream timeout)

To Reproduce Steps to reproduce the behavior:

  1. Use the sample source code from CloudFlare Stream documentation, similar to the one on Readme page.
  2. Run from nodejs.
  3. See error.

Expected behavior onSuccess fired

Setup details Please provide following details, if applicable to your situation:

  • Runtime environment: Node.js v12.13.0
  • Used tus-js-client version: 1.8.0
  • Used tus server software: CloudFlare

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 15 (7 by maintainers)

Most upvoted comments

Created a new ticket on CF support, let’s see what they say.

Did you hear anything back from them, @frhnfrq ?

Created a new ticket on CF support, let’s see what they say.

@Acconut Thanks. FYI below.

The ticket on community don’t have reply to resolve now, but I made support ticket to CloudFlare about the issue and condition to reproduce.

Then, I could hear that they are investigating the issue of last chunk upload. I think that if the improvement is released, all client lib will work on JS and python and so on.