Open aleksandr-vin opened 1 year ago
Any updates on this?
+1 Proxy auth doesn't work on sttp3 (3.8.16) & sttp4 (v4.0.0-M2). It seems somehow related to the next comment: https://github.com/softwaremill/sttp/blob/fbc6f7e6ae222471fbae65c043bf6e15de74e84f/core/src/main/scalajvm/sttp/client4/httpclient/HttpClientBackend.scala#L128-L132
https://bugs.openjdk.org/browse/JDK-8229962
Adding
-Djdk.http.auth.tunneling.disabledSchemes=""
-Djdk.http.auth.proxying.disabledSchemes=""
to your JVM OPTS should work. At least it did for me (using Cats+HttpClient)
If proxy requires authentication (replies with 407 status), then NPE arises.
The stack trace:
For:
Same if proxy configured following the example https://sttp.softwaremill.com/en/latest/conf/proxy.html?highlight=proxy: