Find Jobs
Hire Freelancers

Looking for experienced Java developer.

$15-25 USD / hour

Closed
Posted almost 4 years ago

$15-25 USD / hour

I am developing an java web app that integrates with 3rd party API. The thing is that when I trying to send request this persists the following issue. I think this is because of I am calling api in localhost, but I failed to fix it myself. here it is my code OkHttpClient client = new OkHttpClient().newBuilder().build(); MediaType mediaType = [login to view URL]("application/x-www-form-urlencoded"); RequestBody body = [login to view URL](mediaType, "client_id=" + Constants.PAYPAL_CLIENT_ID +"&redirect_uri=" + Constants.PAYPAL_CLIENT_REDIRECT_URL + "&client_secret=" + Constants.PAYPAL_CLIENT_SECRET + "&code=" + code +"&grant_type=authorization_code"); Request request = new [login to view URL]() .url(Constants.API_URL) .method("POST", body) .addHeader("Authorization", "Basic " + B64Encode(Constants.PAYPAL_CLIENT_ID + ":" + Constants.PAYPAL_CLIENT_SECRET)) .addHeader("Content-Type", "application/x-www-form-urlencoded") .build(); Response response = [login to view URL](request).execute(); and the following is exception detail. detailMessage = (String) "[login to view URL]: PKIX path building failed: [login to view URL]: unable to find valid certification path to requested target" Hopefully experienced someone to help me to fix this issue Thanks.
Project ID: 26877565

About the project

24 proposals
Remote project
Active 4 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs

About the client

Flag of COLOMBIA
Tunja, Colombia
0.0
0
Payment method verified
Member since May 28, 2020

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.