react-native icon indicating copy to clipboard operation
react-native copied to clipboard

java.security.cert.CertPathValidatorException: Trust anchor for certification path not found

Open cengYe opened this issue 10 years ago • 10 comments

When I'm using the fetch function in my react native apps send https request, gives an error in android. The error is 'TypeError: Network request failed'. Doing a bit of debugging, I found that the cause of the error seems to be the following: 'java.security.cert.CertPathValidatorException: Trust anchor for certification path not found'. please help me,I was blocked for many days, the development can't proceed!

cengYe avatar Feb 21 '16 09:02 cengYe

Sounds like a problem with certificate: http://stackoverflow.com/questions/25122287/java-security-cert-certpathvalidatorexception-trust-anchor-for-certification-pa

Kureev avatar Feb 21 '16 10:02 Kureev

java.security.cert.CertPathValidatorException: Trust anchor for certification path not found'. Having the same issue when using https:// fetch / xmlhttprequests. Please look in to this.

srikanthkh avatar Mar 29 '16 20:03 srikanthkh

impuulse avatar May 29 '16 13:05 impuulse

+1

ianakiara avatar Jun 01 '16 18:06 ianakiara

+1

leledumbo549 avatar Jun 18 '16 14:06 leledumbo549

+1

johnwei2019 avatar Jul 04 '16 13:07 johnwei2019

Are your certs valid? Can you post links to the HTTPS endpoints here so that we can see the cert chain?

ide avatar Jul 05 '16 19:07 ide

Hi there! This issue is being closed because it has been inactive for a while.

But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/javasecuritycertcertpathvalidatorexception-trust-anchor-for-certification-path-not-found

Product Pains has been very useful in highlighting the top bugs and feature requests: https://productpains.com/product/react-native?tab=top

Also, if this issue is a bug, please consider sending a pull request with a fix.

mkonicek avatar Oct 27 '16 22:10 mkonicek

I am also have this problem. Maybe someone have a workaround or any updates on this?

onrige avatar Nov 06 '17 00:11 onrige

you have a circular reference :)it's closed here but your link says go to here. https://react-native.canny.io/feature-requests/p/javasecuritycertcertpathvalidatorexception-trust-anchor-for-certification-path-not-found

manit77 avatar Jan 17 '18 04:01 manit77