apisauce
apisauce copied to clipboard
errors don't call catch
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
"apisauce": "^2.1.2",
Thanks in advance.
You are receiving 404 response which is not an error