New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: tus: unexpected response while uploading chunk, originated from request (response code: 408, response text: stream timeout) #176
Comments
Good point, tus-js-client currently does not retry when the server returns a 408 status code (see https://github.com/tus/tus-js-client/blob/master/lib/upload.js#L189-L199), which does not seem correct in this case. Would mind opening a PR to fix this and allow tus-js-client to also retry 408s? |
Hi, we have same error to upload to CloudFlare Stream, with python tus client. Current python implementation does not check Status Code. It checks only response header And once we could upload to CFStream with retry option below 😄 uploader = tus_client.uploader(
file_path=...,
chunk_size=...,
retries=TUS_RETRY_COUNT, # int > 0
retry_delay=...,
) |
@rnakashiro Thanks for reporting, but please open an issue about this in the tus-py-client repository (https://github.com/tus/tus-py-client). |
@implicit-invocation https://community.cloudflare.com/t/cloudflare-stream-uploading-with-tus-stops-with-408/130639/6 |
@rnakashiro Please open an issue in tus-py-client about your problem, so it can be resolved there. This repository is for tus-js-client which you don't seem the be using. |
@Acconut So, now I don't wanna to be fixed in client library side. |
Sure enough! I am just not sure if CloudFlare is going to patch their servers. That's the impression I get from reading https://community.cloudflare.com/t/cloudflare-stream-uploading-with-tus-stops-with-408/130639 |
@Acconut 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. |
@rnakashiro the tuspy client always checks for status code after each request here. Or is it something else you were referring to? 🤔 |
@ifedapoolarewaju |
Is there any update on this? On the CF community forum post (linked above), I see that the issue is caused by the last chunk taking long time to upload. Someone from CF team has replied that they have made optimizations and we should try to upload the last chunk again when 400 errors are returned |
Can you ask the CloudFlare team to weigh in and perhaps contribute their fix back to this open source project? |
Created a new ticket on CF support, let's see what they say. |
Did you hear anything back from them, @frhnfrq ? |
Closing this issue due to inactivity. Feel free to leave a comment if you want to continue the discussion :) |
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
To Reproduce
Steps to reproduce the behavior:
Expected behavior
onSuccess
firedSetup details
Please provide following details, if applicable to your situation:
The text was updated successfully, but these errors were encountered: