# kintone-uploader freezing on connecting to the site

**URL:** <https://forum.kintone.dev/t/kintone-uploader-freezing-on-connecting-to-the-site/547>\
**Category:** General\
**Tags:** devtools\
**Created:** [August 18, 2022, 7:09am UTC](https://forum.kintone.dev/t/kintone-uploader-freezing-on-connecting-to-the-site/547 "2022-08-18T07:09:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christopher\_Foster](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/christopher_foster/32/103_2.png) [@Christopher\_Foster](https://forum.kintone.dev/u/Christopher_Foster)\
**Post date:** [August 18, 2022, 7:09am UTC](https://forum.kintone.dev/t/kintone-uploader-freezing-on-connecting-to-the-site/547/1 "2022-08-18T07:09:20Z")

</div>

Hey folks!

New to kintone plugin/app dev here, trying to use the npm [create-kintone-plugin](https://github.com/kintone/js-sdk/tree/master/packages/create-plugin#create-kintone-plugin) and [kintone-plugin-uploader](https://github.com/kintone/js-sdk/tree/master/packages/plugin-uploader#kintoneplugin-uploader) to smooth my workflow.

But when I try “`npm start`” or run the uploader directly, it has my input my username and password for the Kintone URL, then just hangs on “`open SUBDOMAIN.kintone.com/login?saml=off`”.

Without the uploader working, to see the effects of my builds in Kintone, I have to:

1. Run “`npm run build`” in the terminal

2. In the admin Plugins settings screen, import a plugin via file, and select the new plugin.zip created by the build packer

3. Reload the plugin settings page itself, so the new build manifests on the site

I’ve checked that my login used on the terminal has administrator permissions, I’m following the API doc instructions, and there are no codes or thrown errors. I’ve triple checked I’m using the correct username and password (And it _will_ throw an error if the login info is correct, just to confirm the failstate).

Is there anything I’m missing to make the uploader function on updated code saving, or at least upload when the command line is run, instead of the multi-step process I’m using now?

Alternatively, is there an alternate method of testing my plugin’s effects and code changes “live”, so I can better practice, experiment, and learn?

Thanks so much; I appreciate any help anyone can offer.

-Chris Foster

---

<div class="post-metadata">

**Author:** ![Genji](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/genji/32/646_2.png) [@Genji](https://forum.kintone.dev/u/Genji)\
**Post date:** [August 18, 2022, 3:40pm UTC](https://forum.kintone.dev/t/kintone-uploader-freezing-on-connecting-to-the-site/547/2 "2022-08-18T15:40:43Z")

</div>

Hello @Christopher_Foster ,

Welcome to the Kintone Developer Forum & thank you for posting your question!

Sorry to hear that you are currently unable to take advantage of the kintone-plugin-uploader devtool.

Let's get your problem fixed! 💪

⚡ Note: I have replaced your subdomain with `SUBDOMAIN` for privacy reasons

## Verified that the kintone-plugin-uploader is working ✅

I went through the [Create Plug-in Templates using create-plugin](https://kintone.dev/en/plugins/plug-in-tool-guides/create-plug-in-templates-using-create-plugin/) tutorial and verified that the kintone-plugin-uploader is working for my demo environment

## Questions

1. Did you install `@kintone/plugin-uploader` as a bundle when you were installing `@kintone/create-plugin`? (Or did you install them independently?)
2. Did you install both `@kintone/plugin-uploader` & `@kintone/create-plugin` globally?
3. When promoted input your Kintone subdomain, did you include the `https://`?

```shell
? Input your kintone's base URL (https://example.cybozu.com): https://SUBDOMAIN.kintone.com

```

## Common Mistake

I noticed that when I installed `@kintone/plugin-uploader` locally as a bundle with `@kintone/create-plugin`, I need to include the `https://` when inputting my Kintone subdomain.

Otherwise, I get an error similar to what you describe.

## Solution

A simple way to make your development flow simpler would be to pre-configure your Kintone login credentials in your environmental variable.

1. Install plugin-uploader globally: `npm install -g @kintone/plugin-uploader`
2. Set the environment variables for the subdomain and login information.

### For Windows(PowerShell)

Set environment variables with Kintone information:

```shell
set-item "env:KINTONE_DOMAIN" <subdomain>.kintone.com
set-item "env:KINTONE_USERNAME" <user name>
set-item "env:KINTONE_PASSWORD" <user password>
set-item "env:HTTPS_PROXY or HTTP_PROXY" <proxy settings>

```

Command prompt execution:

```shell
kintone-plugin-uploader --domain $env:KINTONE_DOMAIN --username $env:KINTONE_USERNAME --password $env:KINTONE_PASSWORD plugin.zip

```

### For Mac

Set environment variables with Kintone information:

```shell
export KINTONE_DOMAIN=<subdomain>.kintone.com
export KINTONE_USERNAME=<user name>
export KINTONE_PASSWORD=<user password>
export HTTPS_PROXY or HTTP_PROXY=<proxy settings>

```

Command prompt execution:

```shell
kintone-plugin-uploader --domain $KINTONE_DOMAIN --username $KINTONE_USERNAME --password $KINTONE_PASSWORD plugin.zip

```

### For More Details

Refer to the [Upload Plug-in Files using plugin-uploader](https://kintone.dev/en/plugins/plug-in-tool-guides/uploading-plug-in-files-using-plugin-uploader/#:~:text=Inputting%20authentication%20information%20using%20environment%20variables) tutorial \> `Inputting authentication information using environment variables` section for more information.

## Video Guide

Here is our playlist with videos related to Kintone Plug-in Development:

[Kintone Plug-in Development Playlist - YouTube](https://www.youtube.com/playlist?list=PL_Mf7E0DfF06ABSNmoKDJWNBHydvoYipO)
