Description
Axios request network error is caused by random network fluctuations, where network requests fail after a period of software use in a WiFi environment. There are two points to this problem, one is reporting after a network error occurs TypeError: Error.stack getter called with an invalid receiver, js engine: hermes, One issue is the network error itself, which is related to discussion # 43636. However, there is no cure for network errors. Regarding the frequency of network errors, I have seen a small number of friends also experiencing similar situations. Currently, I have rewritten the heartbeat using okhttp connection pool for Android, and the connection pool reset is currently under testing. I hope to provide a reasonable solution. Thank you
Steps to reproduce
network error occurs TypeError: Error.stack getter called with an invalid receiver, js engine: hermes, One issue is the network erro
React Native Version
0.85.3
Affected Platforms
Runtime - Android
Output of npx @react-native-community/cli info
npx @react-native-community/cli info
warn Package rn-fetch-blob contains invalid configuration: "dependency.hooks" is not allowed. Please verify it's properly linked using "npx react-native config" command and contact the package maintainers about this.
info Fetching system and libraries information...
System:
OS: macOS 14.4
CPU: (8) arm64 Apple M1 Pro
Memory: 106.63 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 20.19.5
path: /usr/local/bin/node
Yarn:
version: 1.22.17
path: /opt/homebrew/bin/yarn
npm:
version: 10.8.2
path: /usr/local/bin/npm
Watchman:
version: 2025.06.30.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.15.2
path: /Users/liuguanglin/.rvm/gems/ruby-3.2.2/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.4
- iOS 18.4
- macOS 15.4
- tvOS 18.4
- visionOS 2.4
- watchOS 11.4
Android SDK:
API Levels:
- "23"
- "24"
- "25"
- "26"
- "27"
- "28"
- "29"
- "30"
- "31"
- "32"
- "33"
- "34"
- "35"
- "36"
Build Tools:
- 27.0.3
- 28.0.3
- 29.0.0
- 29.0.2
- 29.0.3
- 30.0.2
- 30.0.3
- 31.0.0
- 32.0.0
- 32.1.0
- 34.0.0
- 35.0.0
- 36.0.0
System Images:
- android-29 | Google APIs ARM 64 v8a
- android-30 | Google Play Intel x86 Atom
- android-31 | ARM 64 v8a
- android-31 | Google Play ARM 64 v8a
- android-32 | Google APIs ARM 64 v8a
- android-32 | Google Play ARM 64 v8a
- android-34 | Google APIs ARM 64 v8a
- android-Tiramisu | Google APIs ARM 64 v8a
- android-Tiramisu | Google Play ARM 64 v8a
Android NDK: 22.1.7171670
IDEs:
Android Studio: 2024.1 AI-241.18034.62.2412.12266719
Xcode:
version: 16.3/16E5129f
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.17
path: /opt/homebrew/opt/openjdk@17/bin/javac
Ruby:
version: 3.2.2
path: /Users/liuguanglin/.rvm/rubies/ruby-3.2.2/bin/ruby
npmPackages:
"@react-native-community/cli":
installed: 20.1.0
wanted: 20.1.0
react:
installed: 19.2.3
wanted: 19.2.3
react-native:
installed: 0.85.3
wanted: 0.85.3
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: true
newArchEnabled: true
Stacktrace or Logs
network error occurs TypeError: Error.stack getter called with an invalid receiver, js engine: hermes, One issue is the network erro
MANDATORY Reproducer
无
Screenshots and Videos
No response
Description
Axios request network error is caused by random network fluctuations, where network requests fail after a period of software use in a WiFi environment. There are two points to this problem, one is reporting after a network error occurs TypeError: Error.stack getter called with an invalid receiver, js engine: hermes, One issue is the network error itself, which is related to discussion # 43636. However, there is no cure for network errors. Regarding the frequency of network errors, I have seen a small number of friends also experiencing similar situations. Currently, I have rewritten the heartbeat using okhttp connection pool for Android, and the connection pool reset is currently under testing. I hope to provide a reasonable solution. Thank you
Steps to reproduce
network error occurs TypeError: Error.stack getter called with an invalid receiver, js engine: hermes, One issue is the network erro
React Native Version
0.85.3
Affected Platforms
Runtime - Android
Output of
npx @react-native-community/cli infoStacktrace or Logs
MANDATORY Reproducer
无
Screenshots and Videos
No response