-
-
Notifications
You must be signed in to change notification settings - Fork 736
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: Nock: No match for request #1048
Comments
could you create a minimal testcase reproducing the problem on runkit.com, like this https://runkit.com/gr2m/5a2b2a9b890d1b00120eada4? That’ll help us help you :) |
I also have encountered a problem where a deep JSON I send with POST is not matched with nock, even though I manually diff'ed what nock says it expects and what it receives and it was 100% identical. I also tried to use the code outputted from the record function, but same results. The post body consists of a POJO object which contains a deep JSON string. |
@CodeJjang if you could create a reproducible case, that’d be helpful. Otherwise there is not much we can do |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We try to do our best, but nock is maintained by volunteers and there is only so much we can do at a time. Thank you for your contributions. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue and add a reference to this one if it’s related. Thank you! |
I have spec which makes a post request e.g:
This is just example data but running nock version < 9 the spec passes, > 9 it fails with the error message
An error occurred: { Error: Nock: No match for request { ...
.This is seems to be with the body as I have specs that pass if I remove the body when using version > 9.
Has anyone else come across this issue or is there anything I need to do differently with the body between versions 8 and 9?.
I am using
"request": "^2.83.0"
to make the request in my code and running"jasmine": "^2.8.0"
.The text was updated successfully, but these errors were encountered: