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

Error response doesn't work with Angular #300

Open
ArielGueta opened this issue Aug 14, 2020 · 3 comments
Open

Error response doesn't work with Angular #300

ArielGueta opened this issue Aug 14, 2020 · 3 comments

Comments

@ArielGueta
Copy link

When working with Angular and mocking an error response it doesn't work. For example:

image

Returns:

image

I debugged the Angular code and saw the issue is in the line :

1

@morsdyce
Copy link
Owner

Could you make a small example to reproduce this? This is probably an issue with the requests engine (xhook) which I also maintain, however I need to make sure what exactly the issue is and how it conforms to the XHR spec.

I do know people who used mimic with angular and everything worked correctly so I'll check if they know anything about this.

@ArielGueta
Copy link
Author

It only happens when mocking an error. Why xhr.response returns an empty string?

@morsdyce
Copy link
Owner

morsdyce commented Aug 16, 2020 via email

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