React-native: [Android] fetch doesn't work for https://...

Created on 9 Aug 2016  路  4Comments  路  Source: facebook/react-native

08-09 18:08:29.066 1018-2224/com.zerocar W/ReactNativeJS: Network request failed

it is not able to request https on android platform since android native doesn't support it.

image

there should be better documentation since it doesn't say anything or make changes on native module. sorry i have no experience to fix this kind of issue. 馃槩

Locked

Most helpful comment

The HTTPS certicate is not properly signed and Android blocks that. https://developer.android.com/training/articles/security-ssl.html

All 4 comments

Are you sure the https certificate is signed correct?
See also this: https://developer.android.com/training/articles/security-ssl.html

I had once problems with connecting to a ssl connection when I was working on pure native Android because of this.

I think ssl request should just work in react native. However have not tested it myself.

Good luck with fixing it. Maybe you should try another https api to see if it the same problem occurs.

i use https and it's ok with fetch

Actually it's working. Maybe our server setup has something wrong. sorry for confusion.

The HTTPS certicate is not properly signed and Android blocks that. https://developer.android.com/training/articles/security-ssl.html

Was this page helpful?
0 / 5 - 0 ratings