<#484 HTTP DELETE requests with JSON body don't wo...
# pact-js-development
g
#484 HTTP DELETE requests with JSON body don't work Issue created by doktor500 Issue Classification • Bug report Bug Report Contracts for HTTP
DELETE
requests that contain a JSON body can't be verified in the provider. Software versions • OS: Mac OSX 10.15.5 • Consumer Pact library:
@pact-foundation/pact": "^9.11.0
• Provider Pact library:
@pact-foundation/pact": "^9.11.0
• Node Version:
v12.10.0
Issue Checklist Confirm the following: • I have upgraded to the latest • I have created a reproducable git repository (see below) to illuminate the problem • I have the read the FAQs in the Readme • I have triple checked, that there are no unhandled promises in my code Expected behaviour A contract for an HTTP DELETE request with a JSON body can be verified in the provider Actual behaviour A contract for an HTTP DELETE request with a JSON body can't be verified in the provider Steps to reproduce https://github.com/doktor500/pact-delete-bug Relevant log files
Copy code
Verifying a pact between Consumer and Provider

      Given delete-user-1
        a request for deleting user 1 with HTTP DELETE
          with DELETE /users/1
            returns a response which

              has status code 200 (FAILED - 1)

      Given delete-user-1
        a request for deleting user 1 with HTTP POST
          with POST /users/1
            returns a response which

              has status code 200


    Failures:

      1) Verifying a pact between Consumer and Provider Given delete-user-1 a request for deleting user 1 with HTTP DELETE with DELETE /users/1 returns a response which has status code 200
         Failure/Error: replay_interaction interaction, options[:request_customizer]

         EOFError:
           end of file reached


    2 interactions, 1 failure

    Failed interactions:

    * A request for deleting user 1 with http delete given delete-user-1
pact-foundation/pact-js