On upload error response is undefined

Here is what I’m doing to get the response from a failed upload / API request

    uppy.on("upload-error", (file, error, response) => {
      debug("upload-error", file, error, response);
    });

As you can see the response is undefined.

I’m using Uppy version 4.2.1 with XHRUpload.

The goal I’m trying to reach is to be able to create my own notifications on the UI based on API failed request response.

Also, I’m trying to find a way to set the retry count to only 1 so that I get only one notification. Is it possible?

Thanks.

Also, here is the failed request (error 400) response: