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

Why all my requests are blocked? #375

Open
janswist opened this issue Jul 20, 2023 · 1 comment
Open

Why all my requests are blocked? #375

janswist opened this issue Jul 20, 2023 · 1 comment

Comments

@janswist
Copy link

I added just those two lines:

import MockAdapter from 'axios-mock-adapter'
const mock = new MockAdapter(axios, { onNoMatch: "throwException" })

and ALL of my endpoints stopped working. Is that by default?

@suhaotian
Copy link

suhaotian commented Mar 16, 2024

Yeah, if no match, it will throw Exception, if you don't want that, can change to passthrough

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