Skip to content
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

errors don't call catch #278

Open
MohammedSaberMohammed opened this issue Oct 21, 2021 · 1 comment
Open

errors don't call catch #278

MohammedSaberMohammed opened this issue Oct 21, 2021 · 1 comment

Comments

@MohammedSaberMohammed
Copy link

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.

@chakrihacker
Copy link
Collaborator

You are receiving 404 response which is not an error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants