https://linen.dev logo
#help
Title
# help
b

Burcu Akkaya

12/12/2023, 11:15 AM
hi everyone ☺️, I've a problem related with WireMock.stubFor function. I got "org.apache.http.client.ClientProtocolException" error while sending stubmapping. does anyone face with the same issue ? my project current version is
Copy code
<dependency>
            <groupId>com.github.tomakehurst</groupId>
            <artifactId>wiremock</artifactId>
            <version>2.26.1</version>
        </dependency>
1
t

Tom

12/12/2023, 11:35 AM
Hi @Burcu Akkaya, this suggests that the static DSL isn’t configured for the right port and/or protocol, so you’re either connecting to another running service that isn’t HTTP, or you’re trying to do HTTP -> HTTPS (or vice-versa)
As a side note, you’re using a very old version of WireMock and should definitely upgrade to 3.3.1
b

Burcu Akkaya

12/12/2023, 11:57 AM
I fixed the problem thank youu 🙌
👍 1