document-picker icon indicating copy to clipboard operation
document-picker copied to clipboard

Document picker error: Error: Warning: previous promise did not settle and you attempted to overwrite it. You've called "pick" while "pick" was already in progress and has not completed yet.

Open bhavesh2706 opened this issue 11 months ago • 2 comments

I have searched open and closed issues for this issue.

  • [x] I have searched open and closed issues.

I have read and understood the license (link below).

  • [x] I have read and understood the license.

Minimal reproducible example

I'm having trouble with Android when I can't choose a file or cancel it at that moment. When I try to open the documents again, I get the error "Document picker error: Error: Warning: previous promise did not settle and you attempted to overwrite it. You've called "pick" while "pick" was already in progress and has not completed yet."

What platform(s) does this occur on?

Android

Did you reproduce on a real device or emulator / simulator?

emulator / simulator

Steps to reproduce

I'm having trouble with Android when I can't choose a file or cancel it at that moment. When I try to open the documents again, I get the error "Document picker error: Error: Warning: previous promise did not settle and you attempted to overwrite it. You've called "pick" while "pick" was already in progress and has not completed yet."

If the issue is related to specific file(s), I have linked the files so that others can reproduce exactly what I see.

  • [x] I have attached files necessary to reproduce the problem (if applicable).

Stacktrace of the crash (if applicable)

No

Your computer environment

Emulator

bhavesh2706 avatar Jan 02 '26 16:01 bhavesh2706

There's an async bug, see here https://github.com/react-native-documents/document-picker/issues/907 I'm pushing a PR in the next hour that should fix this

CatLover01 avatar Jan 02 '26 16:01 CatLover01

:wave: @bhavesh2706, sorry you're having an issue. As the issue template explains, it's required that you provide a runnable example that reproduces your issue (see the issue template). The reason is that a bug report is not actionable without a reproducer. Try to minimize the superfluous code and focus only on reproducing the bug. Please create a new issue with this and the maintainer will do his best to review it!.

github-actions[bot] avatar Jan 02 '26 19:01 github-actions[bot]