Skip to content

Cannot respond with a 500 status, using got as client #1515

@jsumners

Description

@jsumners

What is the expected behavior?

Nock should return a response with a status code equal to 500.

What is the actual behavior?

Nock: No match for request is returned.

Possible solution

How to reproduce the issue

nock('http://example.com').put('/foo', {foo: 'bar'}).reply(500, 'Server Unavailable').log(console.log)

Note: Nock will actually log that it matches the request but the final result is that it doesn't match the request.

Does the bug have a test case?

Versions

Software Version(s)
Nock 10.0.6
Node 10.15.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions