apisauce icon indicating copy to clipboard operation
apisauce copied to clipboard

errors don't call catch

Open MohammedSaberMohammed opened this issue 3 years ago • 1 comments

Hello everyone I'm using apisause to call an endpoint but this endpoint is not existed as following await Apis.home({ lang: 'ar' }) .then(res => console.log('res', res)) .catch(error => { throw new Error(error); });

but i got everytime this response from then not catch image

"apisauce": "^2.1.2",

Thanks in advance.

MohammedSaberMohammed avatar Oct 21 '21 20:10 MohammedSaberMohammed

You are receiving 404 response which is not an error

chakrihacker avatar Oct 22 '21 03:10 chakrihacker