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

XMLHttpRequestUpload events not firing in Expo Go 49+ #28269

Open
cshfang opened this issue Apr 18, 2024 · 1 comment
Open

XMLHttpRequestUpload events not firing in Expo Go 49+ #28269

cshfang opened this issue Apr 18, 2024 · 1 comment
Labels
Expo Go The client distributed on app stores needs review Issue is ready to be reviewed by a maintainer

Comments

@cshfang
Copy link

cshfang commented Apr 18, 2024

Minimal reproducible example

https://github.com/cshfang/xhr-issue

What platform(s) does this occur on?

iOS

Did you reproduce this issue in a development build?

No (tested in Expo Go)

Summary

XMLHttpRequestUpload events appear to be not firing in Expo Go 49+

Related discussion found here: #27448

Example code of xhr events not firing:

xhr.upload.addEventListener('progress', event => {
  console.log('Event: Upload progress', event); // does not fire during upload
});
xhr.upload.onprogress = event => {
  console.log('Upload progress', event); // does not fire during upload
};
Platform XMLHttpRequestUpload events firing
React Native 0.71
React Native 0.73
Expo Go SDK 48
Expo Go SDK 50
Expo Dev Build SDK 50

Environment

Run within xhr-latest (app presenting with issue) directory

  expo-env-info 1.2.0 environment info:
    System:
      OS: macOS 14.4
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 18.18.0 - ~/.nvm/versions/node/v18.18.0/bin/node
      Yarn: 1.22.19 - ~/.nvm/versions/node/v18.18.0/bin/yarn
      npm: 9.8.1 - ~/.nvm/versions/node/v18.18.0/bin/npm
    Managers:
      CocoaPods: 1.13.0 - /Users/chrfang/.rbenv/shims/pod
    SDKs:
      iOS SDK:
        Platforms: DriverKit 23.0, iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0
      Android SDK:
        API Levels: 26, 28, 30, 31, 32, 33, 34
        Build Tools: 28.0.3, 30.0.2, 30.0.3, 31.0.0, 33.0.0, 33.0.1, 34.0.0, 34.0.0
        System Images: android-24 | Google APIs ARM 64 v8a, android-26 | Google APIs ARM 64 v8a, android-32 | Google APIs ARM 64 v8a, android-33 | Google APIs ARM 64 v8a, android-33 | Google Play ARM 64 v8a, android-34 | Google Play ARM 64 v8a
    IDEs:
      Android Studio: 2022.3 AI-223.8836.35.2231.10671973
      Xcode: 15.0/15A240d - /usr/bin/xcodebuild
    npmPackages:
      expo: ~50.0.14 => 50.0.17 
      react: 18.2.0 => 18.2.0 
      react-native: 0.73.6 => 0.73.6 
    npmGlobalPackages:
      eas-cli: 5.9.1
    Expo Workflow: managed

Expo Doctor Diagnostics

Run within xhr-latest (app presenting with issue) directory

✔ Check Expo config for common issues
✔ Check package.json for common issues
✔ Check native tooling versions
✔ Check dependencies for packages that should not be installed directly
✔ Check for common project setup issues
✔ Check npm/ yarn versions
✔ Check for issues with metro config
✔ Check Expo config (app.json/ app.config.js) schema
✔ Check that native modules do not use incompatible support packages
✔ Check for legacy global CLI installed locally
✔ Check that native modules use compatible support package versions for installed Expo SDK
✔ Check that packages match versions required by installed Expo SDK

Didn't find any issues with the project!
@cshfang cshfang added the needs validation Issue needs to be validated label Apr 18, 2024
@expo-bot expo-bot added needs review Issue is ready to be reviewed by a maintainer and removed needs validation Issue needs to be validated labels Apr 18, 2024
@ChristopherGabba
Copy link

ChristopherGabba commented Apr 18, 2024

@byCedric byCedric added the Expo Go The client distributed on app stores label Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Expo Go The client distributed on app stores needs review Issue is ready to be reviewed by a maintainer
Projects
None yet
Development

No branches or pull requests

4 participants