Hi team, i was try to using record & playback ...
# help
d
Hi team, i was try to using record & playback feature. During recording i can get the response as per below image. After pause the recording and try to hit the same api, i got the response below. Anyone can help? localhost URL: http://localhost:8080/codingresources/codingResources URL : https://api.sampleapis.com/codingresources/codingResources
t
This is usually because the response was in a compression format that WireMock couldn’t handle. Try recording again, but sending the request header
Copy code
Accept-Encoding: identity
d
how to control this request header?
t
Depends - what http client are you using to make the requests when recording?
d
in wiremock it does not support 'Accept' wildcard ?
t
It will support it, but then the target server might return a compressed response that WireMock can’t read
By forcing it to
identity
you’re telling the target server to send plain text and therefore WireMock will be able to show you the decoded version in the log
d
understood, thanks for the hardworks & great work Tom. However is that possible in the next update, Wiremock able to read compressed response without accept: identity ?
t
There’s actually a config parameter that will fix this for you, but it’s not available via CLI in the current version. However, next release will have it: https://github.com/wiremock/wiremock/pull/2694
d
thanks Tom, this's quite issue.
also does Wiremock have compatibility with Git Action ?
t
There’s no specific integration but WireMock’s JSON is formatted in a way that makes it git-friendly.
And the CLI + APIs make it all automatable
d
whre can i find this CLI + API?
t
It’s built into WireMock
d
okay. When's the next release ? cant wait to try it out
t
Not sure yet, probably in a couple of weeks
👀 1