Upgrad from 1.4.9 to 3.13.10 #447
Unanswered
wrmilliron
asked this question in
Q&A
Replies: 1 comment 3 replies
-
there is an upgrade guide here: https://github.com/Kong/unirest-java/blob/main/UPGRADE_GUIDE.md the main package is For the certs you can either disable (sad) or load the self signed cert into the cert store. Both examples are in this test: |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I inherited a project that used 1.4.9 to make REST calls. As part of an effort to enable TLS, unfortunatelly with a self signed cert, i believe there is now a config I can set to help ingonre the private cert issues. I do have the cert in my java cacertsstor and I have things partially working with 1.4.9 but subsequent REST calls give me a this:
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Wierd thing is it looks like the very first REST call works.
Anyways I figure probably bbet to get a more current version of unirest. I updated by build.gradle file and it seems to be pulling down a new version. Plus I saw something about a config to maybe ignore SSL verification?
The issue is all the import stateemnts for unitest are no longer valid.I dod look at the osurce and thought I had the right imports but no joy.
For example import com.mashape.unirest.HttpResponse;
I tried a number of variations based on the unirest source but no joy.
Looking at the most recent documentation it looks the the usage has not changed.
Stuck with java 1.8 unfortunatelly.
Is there a code complete Helloworld out there with all the import statements?
Do I need to add more to my build.gradle other than changing the dependancy to implementation 'com.konghq:unirest-java:3.13.10' ?
Anyways I figured I would ask before exploring other options. Maybe its a simple change :)
Beta Was this translation helpful? Give feedback.
All reactions