react-native-documents / document-picker

Document Picker for React Native
https://react-native-documents.github.io/
MIT License
1.35k stars 437 forks source link

Error: Warning: previous promise did not settle and was overwritten. You've called "pick" while "pick" was already in progress and has not completed yet. #579

Closed saeedtkh closed 2 years ago

saeedtkh commented 2 years ago

Bug report

Hey guys, I am getting this promise rejection on iOS simulator recently after an update on my JDK and node. I am using the latest version which is 8.1.1. it happen on both release and debug. Simulator Screen Shot - iPhone 13 - 2022-07-19 at 18 16 44

Environment info

System:
    OS: macOS 12.2.1
    CPU: (8) arm64 Apple M1
    Memory: 124.03 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 17.6.0 - /opt/homebrew/bin/node
    Yarn: 1.22.17 - /opt/homebrew/bin/yarn
    npm: 8.14.0 - ~/Documents/Workspace/NewIPSMobileApp/IPSMobileApp/IPSMobileApp/node_modules/.bin/npm
    Watchman: 2022.03.07.00 - /opt/homebrew/bin/watchman
  Managers:
    CocoaPods: 1.11.2 - /opt/homebrew/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 21.2, iOS 15.2, macOS 12.1, tvOS 15.2, watchOS 8.3
    Android SDK: Not Found
  IDEs:
    Android Studio: 2021.1 AI-211.7628.21.2111.8193401
    Xcode: 13.2.1/13C100 - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.15 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.2 => 17.0.2 
    react-native: 0.67.3 => 0.67.3 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Steps to reproduce

Whenever I click on upload document I get this waring and this message:

Reproducible sample code

import DocumentPicker from 'react-native-document-picker';
      const res = await DocumentPicker.pick({
        // Provide which type of file you want user to pick
        type: [DocumentPicker.types.allFiles],
      });

Expected behaviour:

I need to open to upload a document in iOS

github-actions[bot] commented 2 years ago

:wave: @saeedtkh, sorry you're having an issue. This issue is being closed because it does not provide all information required by the issue template. As the issue template explains, we require that you provide a runnable example that reproduces your issue and your environment information. This means you need to provide a code snippet that we can copy-paste into an empty project and see the error ourselves, or provide a git repository with the issue. The reason is that maintainers do not have time to try reproduce bugs themselves. Please try to minimize the superfluous code and focus only on reproducing the bug. Please create a new issue with this and we'll be happy to review it!