Closed OrLevy23 closed 12 months ago
This is an error when a device or simulator goes offline.
Also ,a lot of times, ios simulator cannot access network in your mac is resumed from sleep. In that case, one needs to restart the simulator. So would happen more for iOS due to that.
Please set sentry to ignore this error.
this was on a real device, not a simulator If this is not a real error can you please encapsulate it within your library so it won't propagate to me?
@santhoshvai can you please respond? I've also mentioned it explicitly in the issue, this happen in real device on prod environment to real users!
@OrLevy23 Have you solved it? This keeps happening to us on iOS, Android and Web as well.
Issue
We have recently released our app with integration with get-stream and we just saw issue pops up from sentry:
Currently saw 20 errors (only ios at this time), I can't really identify what is happening or why so nothing to add at the moment
Steps to reproduce
Steps to reproduce the behavior: I don't know
Expected behavior
We shouldn't see any errors
Project Related Information
Customization
Click To Expand
```typescript jsx # N/A ```
Offline support
Environment
Click To Expand
#### `package.json`: ```json { "name": "-", "version": "0.0.1", "private": true, "scripts": { }, "dependencies": { "@braze/react-native-sdk": "^4.1.0", "@expo/react-native-action-sheet": "^4.0.1", "@grpc/grpc-js": "1.5.10", "@invertase/react-native-apple-authentication": "^2.2.2", "@notifee/react-native": "^7.7.1", "@ptomasroos/react-native-multi-slider": "^2.2.2", "@react-native-async-storage/async-storage": "^1.18.1", "@react-native-camera-roll/camera-roll": "^5.3.1", "@react-native-clipboard/clipboard": "^1.11.2", "@react-native-community/datetimepicker": "^7.0.1", "@react-native-community/geolocation": "^3.0.6", "@react-native-community/masked-view": "^0.1.11", "@react-native-community/netinfo": "^9.3.10", "@react-native-community/slider": "^4.4.2", "@react-native-firebase/app": "^17.4.3", "@react-native-firebase/auth": "^17.4.3", "@react-native-firebase/messaging": "^17.4.3", "@react-native-google-signin/google-signin": "^9.0.2", "@react-native-picker/picker": "^2.4.10", "@segment/analytics-react-native": "^2.14.0", "@segment/sovran-react-native": "^1.0.2", "@sentry/react-native": "^5.4.1", "@stream-io/flat-list-mvcp": "^0.10.3", "axios": "^0.27.2", "blinkid-react-native": "^5.17.0", "buffer": "^6.0.3", "google-libphonenumber": "^3.2.32", "google-protobuf": "^3.21.2", "grpc-web": "^1.4.2", "launchdarkly-react-native-client-sdk": "^7.1.4", "lodash": "^4.17.21", "lottie-react-native": "^5.1.5", "mixpanel-react-native": "^2.3.1", "mobx": "^6.9.0", "mobx-react": "^7.6.0", "moment": "^2.29.4", "react": "18.2.0", "react-native": "0.71.7", "react-native-actions-sheet": "^0.8.29", "react-native-animated-pagination-dots": "^0.1.73", "react-native-appsflyer": "6.10.3", "react-native-avoid-softinput": "^3.1.5", "react-native-collapsible": "^1.6.1", "react-native-config": "^1.5.0", "react-native-device-info": "^10.6.0", "react-native-document-picker": "^8.2.0", "react-native-easy-content-loader": "^0.3.2", "react-native-fast-image": "^8.6.3", "react-native-fs": "^2.20.0", "react-native-geolocation-service": "^5.3.1", "react-native-gesture-handler": "^2.9.0", "react-native-get-random-values": "^1.8.0", "react-native-haptic-feedback": "^2.0.3", "react-native-image-crop-picker": "^0.39.0", "react-native-image-resizer": "^1.4.5", "react-native-keyboard-aware-scroll-view": "^0.9.5", "react-native-linear-gradient": "^2.6.2", "react-native-maps": "1.7.1", "react-native-maps-directions": "^1.9.0", "react-native-markdown-display": "6.1.6", "react-native-modal-datetime-picker": "^15.0.0", "react-native-pager-view": "^6.2.0", "react-native-paper": "^5.7.2", "react-native-permissions": "^3.8.0", "react-native-progress": "^5.0.0", "react-native-reanimated": "^3.0.2", "react-native-render-html": "^6.3.4", "react-native-safe-area-context": "^4.5.2", "react-native-share": "^8.2.2", "react-native-snap-carousel": "^4.0.0-beta.6", "react-native-svg": "^13.9.0", "react-native-tab-view": "^3.5.1", "react-native-text-input-mask": "^3.1.4", "react-native-tracking-transparency": "^0.1.2", "react-native-vector-icons": "^9.2.0", "react-native-video": "^5.2.1", "react-native-webview": "^12.0.2", "react-number-format": "^5.1.4", "react-router-native": "^5.3.4", "stream-chat": "^8.5.0", "stream-chat-react-native": "^5.13.0", "url-parse": "^1.5.10" }, "devDependencies": { "@babel/core": "^7.21.8", "@babel/eslint-parser": "^7.21.8", "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6", "@babel/preset-env": "^7.21.5", "@babel/runtime": "^7.21.5", "@react-native-community/eslint-config": "^3.2.0", "@tsconfig/react-native": "^3.0.0", "@types/google-libphonenumber": "^7.4.23", "@types/google-protobuf": "^3.15.6", "@types/jest": "^29.5.1", "@types/lodash": "^4.14.194", "@types/react": "^18.2.6", "@types/react-dom": "^18.2.4", "@types/react-native": "^0.71.6", "@types/react-native-snap-carousel": "^3.8.5", "@types/react-native-vector-icons": "^6.4.13", "@types/react-router-native": "^5.1.3", "@types/react-test-renderer": "^18.0.0", "@types/url-parse": "^1.4.8", "@typescript-eslint/eslint-plugin": "^5.59.2", "@typescript-eslint/parser": "^5.59.2", "babel-jest": "^29.5.0", "deprecated-react-native-prop-types": "^4.1.0", "eslint": "^8.40.0", "eslint-config-prettier": "^8.8.0", "eslint-plugin-prettier": "^4.2.1", "eslint-plugin-react": "^7.32.2", "eslint-plugin-react-native": "^4.0.0", "husky": "8.0.3", "jest": "^29.5.0", "lint-staged": "^13.2.2", "metro-react-native-babel-preset": "0.76.3", "patch-package": "^7.0.0", "prettier": "^2.8.8", "react-test-renderer": "18.2.0", "typescript": "5.0.4" }, "resolutions": { "@types/react": "^18", "@types/react-dom": "^18" }, "jest": { "preset": "react-native", "moduleFileExtensions": [ "ts", "tsx", "js", "jsx", "json", "node" ], "setupFiles": [ "./tests/mocks.ts" ], "transformIgnorePatterns": [ "node_modules/(?!react-native-payfort-sdk|react-native)/" ] } } ``` **`react-native info` output:** ``` nfo Fetching system and libraries information... System: OS: macOS 13.3.1 CPU: (8) arm64 Apple M1 Pro Memory: 142.11 MB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 18.16.0 - ~/.nvm/versions/node/v18.16.0/bin/node Yarn: 1.22.19 - ~/.yarn/bin/yarn npm: 9.5.1 - ~/.nvm/versions/node/v18.16.0/bin/npm Watchman: 2023.05.01.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: Not Found SDKs: iOS SDK: Platforms: DriverKit 22.4, iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4 Android SDK: API Levels: 28, 30, 31, 32, 33 Build Tools: 29.0.2, 30.0.2, 30.0.3, 31.0.0, 33.0.0, 33.0.2 System Images: android-28 | Google APIs ARM 64 v8a, android-30 | Google APIs ARM 64 v8a, android-32 | Google APIs ARM 64 v8a, android-32 | Google APIs Intel x86_64 Atom, android-32 | Google Play ARM 64 v8a, android-32 | Google Play Intel x86 Atom_64, android-33 | Google APIs ARM 64 v8a Android NDK: 22.1.7171670 IDEs: Android Studio: Flamingo 2022.2.1 Patch 2 Flamingo 2022.2.1 Patch 2 Xcode: 14.3.1/14E300c - /usr/bin/xcodebuild Languages: Java: 17.0.7 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 18.2.0 => 18.2.0 react-native: 0.71.7 => 0.71.7 react-native-macos: Not Found npmGlobalPackages: *react-native*: Not Found ``` - **Platform that you're experiencing the issue on**: - [X] iOS - [ ] Android - [ ] **iOS** but have not tested behavior on Android - [ ] **Android** but have not tested behavior on iOS - [ ] Both - **`stream-chat-react-native` version you're using that has this issue:** - `8.5.0` - Device/Emulator info: - [X] I am using a physical device - OS version: `Currently iOS 16 & iOS 16(multiple versions)` - Device/Emulator: `Multiple ios Devices`
Additional context
Screenshots
Click To Expand