Ulises Cervino
05/04/2023, 3:08 PMuglyog
Ulises Cervino
05/05/2023, 7:21 AM500 + null and I thought it’d be the extra headers that the client is sendingUlises Cervino
05/05/2023, 7:21 AMMatt (pactflow.io / pact-js / pact-go)
Ulises Cervino
05/10/2023, 7:26 AMUlises Cervino
05/10/2023, 7:27 AMUlises Cervino
05/10/2023, 7:27 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
right, that’s what I’ve been trying to do. The mismatch reported by junit5 simply says “unexpected request”, and dumps everything, though there’s no indication as to what was unexpected about the request itselfhmm. No HTML report written to file anywhere though?
Ulises Cervino
05/11/2023, 2:31 PMYousaf Nabi (pactflow.io)
Ulises Cervino
05/12/2023, 10:56 AMYousaf Nabi (pactflow.io)
Ulises Cervino
05/12/2023, 10:57 AMUlises Cervino
05/12/2023, 11:33 AMApiException{code=500, endpoint=<http://localhost:63004/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee>, responseHeaders={access-control-allow-origin=[*], content-length=[762], content-type=[application/json], date=[Fri, 12 May 2023 11:32:45 GMT], x-pact-unexpected-request=[1]}, responseBody='{ "error": "Unexpected request : \tmethod: PUT\n\tpath: \/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee\n\tquery: {}\n\theaders: {Accept-encoding=[gzip], X-booking-timeout-ms=[5000], Accept=[application\/json], X-booking-request-max-attempts=[1], Connection=[Keep-Alive], Host=[localhost:63004], X-booking-trace-meta=[caller_persona=\"banana\"], X-booking-request-attempt=[1], User-agent=[<http://Booking.com|Booking.com> Internal B.Client v6.52.0], X-booking-topic=[b-basket-platform-basket-service], Content-type=[application\/json], Content-length=[77], Tracestate=[evsystem=caller_persona:\"banana\"]}\n\tmatchers: MatchingRules(rules={})\n\tgenerators: Generators(categories={})\n\tbody: PRESENT({\"creator\":\"FLIGHT\",\"booker\":{\"BUID\":\"11111111-2222-3333-4444-555555555555\"}})" }'}Ulises Cervino
05/12/2023, 11:34 AMUlises Cervino
05/12/2023, 11:34 AMUlises Cervino
05/12/2023, 11:34 AMYousaf Nabi (pactflow.io)
Ulises Cervino
05/12/2023, 11:42 AMYousaf Nabi (pactflow.io)
Ulises Cervino
05/12/2023, 11:45 AMUlises Cervino
05/12/2023, 11:45 AMfield: null in how I was setting up the mockYousaf Nabi (pactflow.io)
Ulises Cervino
05/12/2023, 11:46 AMUlises Cervino
05/12/2023, 11:46 AMYousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
Ulises Cervino
05/12/2023, 11:47 AMmapper.writeAsString(new RequestThing().withField("blah")) and use the resulting string for the mock serverUlises Cervino
05/12/2023, 11:47 AMYousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
enjoy your coffee and thanks for making me look into this againMy pleasure! on the again - I'm sure there is something we could add maybe into some troubleshooting notes to help others out in the future
Jerry Wang
05/17/2023, 3:27 PM<http://au.com|au.com>.dius.pact.consumer.UnfilteredMockProvider?uglyog
Jerry Wang
05/17/2023, 11:15 PMuglyog