net::ERR_CONNECTION_RESET
See original GitHub issueI 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:
Bigger files do not upload and show errors in the browser (this output shows two upload attempts):
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:
- Created 6 years ago
- Comments:9 (3 by maintainers)
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!!
Ok. Anyways, with
formData: true
using the accurate endpoint it works as well now! So I should be ‘multipart covered’ then, right?