So I have a set up where I am working in a Kotlin microservice that connects to several other services. For some situations, we have an app written in Golang that can configured to mock responses in order to increase development speed.
This has always worked, but today, after a while without using it, I found that the Kotlin app is unable to make a request to the Golang app. This is the error I am getting:
Error calling /v1/myendpointmocked. Error detail [PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
So, I am running both apps locally, NOT USING HTTPS nor SSL in any way. Yet the error Kotlin is throwing seems to indicate it does. And again, this was working perfectly a few weeks back. Some things I have noticed:
- If I mock the exact same response from Python3, then Kotlin IS able to get the response with no issues.
- I had a MacOS update a few days back
- One difference between the Python3 response and Golang response is that Go is replying with http1.1 while Python does it in http1.0
I have tried everything I can think of and I am unable to find the root cause.
0