developit / unfetch

🐕 Bare minimum 500b fetch polyfill.
https://npm.im/unfetch
MIT License
5.7k stars 201 forks source link

Promise was rejected with a non-error #139

Open nmoinvaz opened 4 years ago

nmoinvaz commented 4 years ago

It seems that the promise is not rejected with an error and it generates this warning:

image

Consider using something like:

request.onerror = function() {
    reject(new Error('Request for ' + url + ' failed with status code ' + request.status));
};

This occurs when using Bluebird Promises.

Vansh-Baghel commented 1 year ago

@developit can u assign this issue to me? I would be able to fix it after few questions.