Find Jobs
Hire Freelancers

Looking for experienced Java developer.

$15-25 USD / hour

Fechado
Publicado há quase 4 anos

$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.
ID do Projeto: 26877565

Sobre o projeto

24 propostas
Projeto remoto
Ativo há 4 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos

Sobre o cliente

Bandeira do(a) COLOMBIA
Tunja, Colombia
0,0
0
Método de pagamento verificado
Membro desde mai. 28, 2020

Verificação do Cliente

Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos Publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.