question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

net::ERR_CONNECTION_RESET

See original GitHub issue

I try to setup an upload to ovh object storage (openstack swift) and use the XHRUpload plugin like this:

    vm.uppy.use(XHRUpload, {
      endpoint: vm.endpoint,
      method: 'put',
      formData: true,
      fieldname: vm.name,
      metaFields: null,
      headers: {
        'X-Auth-Token': 'mysecrettoken'
      },
      getResponseData (xhr) {
        return {
          url: xhr.responseURL
        }
      },
      getResponseError (xhr) {
        console.log('oooooh: ', xhr)
      },
      responseUrlFieldName: 'url',
      timeout: 30 * 1000,
      limit: 0
    })
      .run()

With smal files (~ < 300 kB) the events give no errors and seem to suggest a succesful upload (sometimes downloaded at once, sometimes also giving multiple progress event outputs showing an increased size etc.). However the uploaded file does not appear in the ovh container (into which BTW I can curl objects…). Here are the console event messages: screenshot from 2018-02-02 17-06-18

Bigger files do not upload and show errors in the browser (this output shows two upload attempts): screenshot from 2018-02-02 17-04-14

So the error being: PUT https://storage.gra1.cloud.ovh.net/v1/AUTH_b1d2d7d556b84e7....../first_ovh_storage_container/ net::ERR_CONNECTION_RESET

Failed files have error: “upload error” and after 30 seconds error: “Upload stalled for 30 seconds, aborting.”

Any idea what is causing this?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
musicformellonscommented, Feb 5, 2018

HAAAAAAA! works!!! The endpoint should include the filename, so not just the container; So just like in the curl it should include ‘storedwiththisname.jpg’. Many thanks!!

0reactions
musicformellonscommented, Feb 5, 2018

Ok. Anyways, with formData: true using the accurate endpoint it works as well now! So I should be ‘multipart covered’ then, right?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix the "ERR_CONNECTION_RESET" Error (5 Ways)
If you run into the “ERR_CONNECTION_RESET” error, it means that your browser can't establish a connection to the remote server. In most cases, ......
Read more >
How to fix the Chrome connection problem - IONOS
One of the most common reasons for the “ERR_CONNECTION_RESET” error is that a proxy server has been defined in the internet settings and...
Read more >
How to Fix the ERR_CONNECTION_RESET Error in 7 Ways
If you're receiving the ERR_CONNECTION_RESET error message, it means that your internet browser is unable to connect to the target website's server.
Read more >
Getting error in console : Failed to load resource: net ...
I have refresh my application page and getting this error in console Failed to load resource: net::ERR_CONNECTION_RESET ...
Read more >
SOLVED: Resolve ERR_CONNECTION_RESET - Appuals
ERR_CONNECTION_RESET is an error that usually occurs when the site you are trying to visit cannot establish a connection with the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found