Giter Site home page Giter Site logo

aws-s3-multipart: retry signature request - upload-error event not triggered on loss of network connection - not retrying requests about uppy HOT 4 OPEN

JohnDennehy101 avatar JohnDennehy101 commented on July 2, 2024
aws-s3-multipart: retry signature request - upload-error event not triggered on loss of network connection - not retrying requests

from uppy.

Comments (4)

JohnDennehy101 avatar JohnDennehy101 commented on July 2, 2024

Hi @Murderlon @aduh95, thanks for assigning for further investigation. Just wondering if ye have had a chance to take a look in more detail / will this issue be resolved in a future release?

from uppy.

macmillen avatar macmillen commented on July 2, 2024

This is also happening to me. I blocked the outgoing aws connection to get a timeout error to test the upload-error hook but it never triggers the hook.

from uppy.

aduh95 avatar aduh95 commented on July 2, 2024

Hello, I'm having trouble reproducing, are you able to reproduce consistently the issue or is there some flakiness involved? Are you trying to upload local files, or files from a remote provider (e.g. Google Drive)? What is the behavior on the DevTools? Do you see an infinite amount of requests being sent (and at what interval are they sent), or is it just one request pending indefinitely?

For the record, I tried to reproduce using yarn dev:with-companion:

  • I added uppyDashboard.on('upload-error', function(...args) {debugger}) in private/dev/Dashboard.js to detect if the event is emitted.
  • I configured Firefox DevTools to block all https://s3.us-east-1.amazonaws.com/* requests.
  • I started to upload a local file.

This is also happening to me. I blocked the outgoing aws connection to get a timeout error to test the upload-error hook but it never triggers the hook.

Can you clarify if you block the outgoing connections from the client or from Companion side?

from uppy.

JohnDennehy101 avatar JohnDennehy101 commented on July 2, 2024

Hi @aduh95,

I have resolved this issue by hardcoding a custom plugin using the code before the change I highlighted was implemented.

I was able to consistently reproduce the issue at the time. Our use case is for uploading large local files to s3 using pre-signed urls returned from companion.

On loss of network connection, the pending requests just remain in that state and the browser just hangs (with the upload progress spinner still displaying that the upload is in progress).

We do not block the outgoing connections from either side.

from uppy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.