question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SSL exceptions when proxying requests

See original GitHub issue

Bug reports

We’re a lot more likely to look at and fix bugs that are clearly described and reproduceable. Please including the following details when reporting a bug:

  • Which version of WireMock you’re using: 2.26.3
  • How you’re starting and configuring WireMock, including configuration or CLI the command line: docker-compose to run wiremock and Dockerfile to build wiremock image are provided in github repo
  • A failing test case that demonstrates the problem: there are two curl commands in the readme file. Please run it one by one couple times.

Hello, First of all, thank you all for the awesome software! I have an issue when using wiremock together with haproxy which is responsible for proxying all requests (not mocked in wiremock ones). I created a small simple docker compose file for you to test it: https://github.com/AnCh7/wiremock-haproxy It consist of:

  1. Wiremock Dockerfile with healthcheck and proxy-all mappings.
  2. Haproxy config file (pretty simple configuration)
  3. Docker compose file and readme file with information how to run it and error that I am getting. Usually, if you run same curl command twice, you can get this error first time, but never second. So please run these to curl commands one by one.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15

github_iconTop GitHub Comments

2reactions
tomakehurstcommented, Jun 10, 2020

OK, I can replicate this now if I run your script. Having tinkered with it a little it seems that making requests with different Host values in short succession triggers the issue, so there may be something in the hypothesis that this is something WireMock related.

I’m going to keep looking, anyway,

1reaction
tomakehurstcommented, May 6, 2021

Connection reuse by the proxy client has now been completely disabled in 55490cec33dee35c031a53e13b94fd7a9c37fa16

Read more comments on GitHub >

github_iconTop Results From Across the Web

SSL exceptions when proxying requests · Issue #1320 - GitHub
Sure. I am getting OpenSSL error when wiremock is proxying requests through to other hosts, for example: haproxy_1 | 00000016:fe.clireq[0012: ...
Read more >
ProxySG Denied SSL Request Behavior Explained
This is normal behavior when we need to inject some form of exception page because the proxy must contact the OCS to retrieve...
Read more >
How to get around python requests SSL and proxy error?
When sending a request with authentication, I get a requests.exceptions.SSLError error which you can See below. proxies = { 'https' ...
Read more >
SSL Error when requests come from proxy - DevCentral
Hello, I have a problem with some Virtual Servers on LTM. I use SSLClient Profiles so the dialog between F5 and server is...
Read more >
Tunneling SSL Through the Proxy Server
When you are running a Proxy Server (proxy) in the forward direction and a client requests an SSL connection to a secure server...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found