-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
UnhandledPromiseRejectionWarning when importing a file with unknown (or no) extension #3710
Comments
Ah okay so this was due to the async work cc @raybellis This is the offending line, if you upload a whatever.md etc to Etherpad you will see this error. Do you have time to take a look @raybellis For me for plugin development I just hack around it. |
https://github.com/ether/etherpad-lite/pull/3718/files is my hacky workaround. @raybellis |
The non-hacky fix is to replace the call to |
Ah, I see @tudorconstantin already beat me to it :) |
Fixed pulling in #3722 by @tudorconstantin. |
This happens in 1.8:
This happens when importing a file without known extension in the file name (e.g. no extension at all). As a workaround, you have to set the file name and let it end with an extension, e.g.
.txt
.Edit by @muxator: this happens not only when no extension is given, but for every unknown extension (including none) when
allowUnknownFileEnds
insettings.json
istrue
. Changed the title accordingly.The text was updated successfully, but these errors were encountered: