Open
Description
Package
- @kintone/plugin-uploader v7.1.0
Why
It's not easy to identify a root cause when uploading a plugin failure occurs. The plugin-uploader outputs the following messages when I try to upload a plugin:
$ kintone-plugin-uploader --base-url https://xxx.kintone.com my-plugin.zip
Open https://xxx.kintone.com/login?saml=off
Trying to log in...
Navigate to https://xxx.kintone.com/k/admin/system/plugin/
Trying to upload my-plugin.zip
An error occurred TimeoutError: waiting for selector `.ocean-ui-dialog` to be hidden failed: timeout 60000ms exceeded
...stack trace
The plugin is actually invalid, and I can confirm what is incorrect on my browser by uploading a plugin manually.
What
I propose two solutions; 1) get error messages in the dialog and notify them to a user, and 2) save a screenshot of the browser when the plugin-uploader fails.