-
Notifications
You must be signed in to change notification settings - Fork 2k
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
response undefined in .on('upload-error', (file, error, response) => ...)
#5439
Comments
Same issue here, I hope this can be fixed soon. |
How did you actually reproduce this with a real setup? You leave your xhr endpoint empty, if no server exists it's not possible to ever receive a response. Uppy should probably check if |
I'm having this issue too. Server sending a |
For simplicity to produce error, I left the endpoint as empty string. The main point is, when my server return error, I expect Uppy to forward the error response, instead returning undefined. |
Closed in #5486 |
Initial checklist
Link to runnable example
https://stackblitz.com/edit/vitejs-vite-mrjtcx?file=main.js
Steps to reproduce
Expected behavior
In the setup, I added callback on upload error:
"Uppy-Error ******************** " should be followed with actual response from the http request
Actual behavior
"Uppy-Error ******************** undefined"
undefined is found instead of actual response
The text was updated successfully, but these errors were encountered: