Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XMLHttpRequest Object throws occasional "Network Error" in TestFlight Production Environment #44175

Open
ChristopherGabba opened this issue Apr 21, 2024 · 3 comments
Labels
Needs: Attention Issues where the author has responded to feedback. Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. Needs: Triage 🔍 🌐Networking Related to a networking API. Newer Patch Available

Comments

@ChristopherGabba
Copy link

Description

Months ago, I submitted a bug request with the amplify-js team with AWS over a very frustrating bug that has been occurring periodically in our production app. Essentially when a user is on a relatively poor network connection (10ish MB/s upload speed or slower), the XMLHttpRequest will throw a Network Error and fail the upload to S3. After a few months of tracing, the issue is stemming directly from the XMLHttpRequest object, and not from Amplify itself.

Here is a reference to the issue: aws-amplify/amplify-js#12912

You will find the entire error trace system within this github thread and ultimately determining where it's stemming from towards the end. Because it's occurring in production environment, I have not been able to make a perfectly reproducible example.

Steps to reproduce

My beta testing team is experiencing this issue every day at random in our production environment, and will gladly work with the react-native team to provide any logs necessary. It's obviously very difficult to get an example app that is firing this error over and over again because it's happening in production.

React Native Version

0.73.6

Affected Platforms

Runtime - iOS

Output of npx react-native info

System:
  OS: macOS 14.2.1
  CPU: (10) arm64 Apple M2 Pro
  Memory: 87.31 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.7.0
    path: /opt/homebrew/bin/node
  Yarn:
    version: 1.22.22
    path: /opt/homebrew/bin/yarn
  npm:
    version: 10.1.0
    path: /opt/homebrew/bin/npm
  Watchman:
    version: 2023.09.04.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.12.1
    path: /opt/homebrew/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.4
      - iOS 17.4
      - macOS 14.4
      - tvOS 17.4
      - visionOS 1.1
      - watchOS 10.4
  Android SDK: Not Found
IDEs:
  Android Studio: 2022.2 AI-222.4459.24.2221.9862592
  Xcode:
    version: 15.3/15E204a
    path: /usr/bin/xcodebuild
Languages:
  Java: Not Found
  Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.73.6
    wanted: 0.73.6
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: Not found
  newArchEnabled: Not found
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found

Stacktrace or Logs

Refer to all of this github thread for all the issue screenshots and error windows:

https://github.com/aws-amplify/amplify-js/issues/12912

Reproducer

TBD

Screenshots and Videos

Refer to aws-amplify/amplify-js#12912

Copy link

⚠️ Newer Version of React Native is Available!
ℹ️ You are on a supported minor version, but it looks like there's a newer patch available - 0.73.7. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases.

@github-actions github-actions bot added Needs: Author Feedback Newer Patch Available Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. labels Apr 21, 2024
Copy link

⚠️ Missing Reproducible Example
ℹ️ We could not detect a reproducible example in your issue report. Please provide either:
  • If your bug is UI related: a Snack
  • If your bug is build/update related: use our Reproducer Template. A reproducer needs to be in a GitHub repository under your username.

@github-actions github-actions bot added the 🌐Networking Related to a networking API. label Apr 21, 2024
@ChristopherGabba
Copy link
Author

I am on the latest version now (73.8) and still occurs. Thanks, CHris

@github-actions github-actions bot added Needs: Attention Issues where the author has responded to feedback. and removed Needs: Author Feedback labels May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Attention Issues where the author has responded to feedback. Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. Needs: Triage 🔍 🌐Networking Related to a networking API. Newer Patch Available
Projects
None yet
Development

No branches or pull requests

1 participant