Re: Getting error with foreign exchange API.

kamalmehta
Regular Visitor

Getting error with foreign exchange API.

sample-code.png

Hi Twitter dev team,

 

I am getting validation error in calling foreign exchange rate API from sample code downloaded from your site.

- I passed the correct credentials.

- I converted cert.pem file to p12 file first and then from p12 converted to jks file.

- Please suggest if I am doing something wrong.'

 

org.springframework.web.client.ResourceAccessException: I/O error on POST request for "https://sandbox.api.visa.com/forexrates/v1/foreignexchangerates": sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target; nested exception is javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

2 REPLIES 2
API_Products
Visa Developer Support Specialist

Re: Getting error with foreign exchange API.

Hi @kamalmehta,

 

I'm happy to help resolve your issue. I've logged INC9680984 for the engineering team to review. Someone will reach out to you with an update soon.

 

 




Thanks,

Diana H.



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

API_Products
Visa Developer Support Specialist

Re: Getting error with foreign exchange API.

Hey @kamalmehta,

 

Can you please let us know if the issue still requires an investigation? Thanks and we're happy to help. 




Thanks,

Diana H.



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.