Fetch error in Android https GET
See original GitHub issueWhen i call the url https://www.cchd.de/ct/api/info
with the fetch
api on Android i always get the error: Network request failed
. On iOS it works fine.
I use an android simulator for my tests:
- Nexus_5X_API_27
This is the code is use to test it:
fetch('https://www.cchd.de/ct/api/info')
.then(response => {
console.log('Fetch success', response);
})
.catch(error => {
console.log('Fetch error', error);
});
I also read some other issues about similar issues but none of them solved my issue. Other urls like this one work fine: https://testdavid.church.tools/api/info
For me it seems like that is an issue with certificates but i cannot figure out what is wrong here.
React Native version:
info
React Native Environment Info:
System:
OS: macOS 10.14.5
CPU: (4) x64 Intel(R) Core(TM) i5-5287U CPU @ 2.90GHz
Memory: 589.11 MB / 8.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 10.15.1 - ~/.nvm/versions/node/v10.15.1/bin/node
Yarn: 1.13.0 - /usr/local/bin/yarn
npm: 6.4.1 - ~/.nvm/versions/node/v10.15.1/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2
Android SDK:
API Levels: 23, 25, 26, 27, 28
Build Tools: 23.0.1, 25.0.1, 26.0.2, 27.0.3, 28.0.0, 28.0.3
System Images: android-23 | Intel x86 Atom_64, android-23 | Google APIs Intel x86 Atom_64, android-27 | Google APIs Intel x86 Atom
IDEs:
Android Studio: 3.2 AI-181.5540.7.32.5056338
Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild
npmPackages:
react: 16.8.3 => 16.8.3
react-native: 0.59.8 => 0.59.8
npmGlobalPackages:
react-native-cli: 2.0.1
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Fetch request fails in react-native for https and not http in android
The following is the code that i have used to make a fetch request. I seem to be facing an issue only with...
Read more >Using the Fetch API - MDN Web Docs
The Fetch API provides a JavaScript interface for accessing and manipulating parts of the protocol, such as requests and responses.
Read more >Fetch data from the internet - Flutter documentation
This recipe covers how to fetch a sample album from the JSONPlaceholder using the http.get() method. ... The http.get() method returns a Future...
Read more >Solved: Fetch doesn't support HTTP anymore - Fitbit Community
Solved: After the latest upgrade of SDK to 3.1, Fitbit firmware to 32.33.1.30, and Fitbit Android App to 2.91, I've realized that "fetch"...
Read more >IssueTracker - Google
“ ta elif eht ot esworb nac Ihttps://dl-ssl.google.com/android/repository/addons_list-1.xml, however, I get the error "Failed to fetch URL ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@djschilling
https://www.cchd.de/ct/api/info
andtestdavid.church.tools/api/info
, both did not throw any errorClosing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.