[Help need] Network failure trying to make a proxied request from WireMock to target URL

1,014 views
Skip to first unread message

Tanyagorn Benjaprompadung

unread,
Oct 16, 2022, 1:22:19 PM10/16/22
to wiremock-user
Hi, I'm struggling with record and playback

I run wiremock standalone with this command
java -jar wiremock-jre8-standalone-2.34.0.jar --proxy-via http://username:password@https://my-qa-corp.local:444/ --enable-browser-proxying --trust-all-proxy-targets

Details for wiremock standalone running
wiremock_status.jpg

then I open recorder UI page at http://localhost:8080/__admin/recorder and enter this as target URL https://my-qa-corp.local:444/ and start recording.

Next I open terminal and enter curl http://localhost:8080/service/health and got Network failure trying to make a proxied request from WireMock to https://my-qa-corp.local:444/service/health https: nodename nor servname provided, or not known

Can you help point out what did I do wrong/missing here?

Tanyagorn Benjaprompadung

unread,
Oct 17, 2022, 1:05:18 AM10/17/22
to wiremock-user
NVM, I solved it by myself. I just need to remove --proxy-via part out then it all works
like this;
java -jar wiremock-jre8-standalone-2.34.0.jar --enable-browser-proxying --trust-all-proxy-targets

ในวันที่ วันจันทร์ที่ 17 ตุลาคม ค.ศ. 2022 เวลา 0 นาฬิกา 22 นาที 19 วินาที UTC+7 Tanyagorn Benjaprompadung เขียนว่า:
Reply all
Reply to author
Forward
0 new messages