# UXP Devtools CLI - Websocket error \[object Object\]

**URL:** <https://forums.creativeclouddeveloper.com/t/uxp-devtools-cli-websocket-error-object-object/7528>\
**Category:** UXP Developer Tool\
**Created:** [February 13, 2024, 11:29am UTC](https://forums.creativeclouddeveloper.com/t/uxp-devtools-cli-websocket-error-object-object/7528 "2024-02-13T11:29:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![WilliamSBergqvist](https://avatars.discourse-cdn.com/v4/letter/w/ea666f/32.png) [@WilliamSBergqvist](https://forums.creativeclouddeveloper.com/u/WilliamSBergqvist)\
**Post date:** [February 13, 2024, 11:29am UTC](https://forums.creativeclouddeveloper.com/t/uxp-devtools-cli-websocket-error-object-object/7528/1 "2024-02-13T11:29:59Z")

</div>

Hi,

I’m trying to get the [CLI version of UXP Devtools](https://github.com/adobe-uxp/devtools-cli) to work, however I end up with an error when trying to load a plug-in with the `uxp plugin load` command, se below:

I start by starting the service:

```auto
> uxp service start
UXP Developer Service now running at port 14001
New Server client Connected : Type : app
PS(23.1.0) connected to service ...

```

Then I run the command to enable the devtools

```auto
> uxp devtools enable

Administrator privileges are needed to enable UXP Developer Tools on this system. By continuing you agree to
1) Adobe's Terms of Use: https://www.adobe.com/legal/terms.html
2) Adobe Developer Additional Terms: http://www.adobe.com/go/developer-terms
Press Enter to Continue...

UXP DevTools is Enabled now.

```

However, when trying to initialize a plugin it just outputs the following:

```auto
> uxp plugin load
Websocket error [object Object]
Command 'plugin load' failed.
[object Object]

```

Tried with both on a new plugin initialization (running `uxp plugin init`) as well as this code: [uxp-photoshop-plugin-samples/hello-world-panel-js-sample at main · AdobeDocs/uxp-photoshop-plugin-samples · GitHub](https://github.com/AdobeDocs/uxp-photoshop-plugin-samples/tree/main/hello-world-panel-js-sample)

If I try `uxp plugin validate`, I get the following error:

```auto
Websocket error [object Object]
Manifest Validation Failed.
[object Object]

```

If I try `uxp apps list` to list running apps to connect to i recieve:

```auto
Websocket error [object Object]
Command 'apps list' failed.
[object Object]

```

Any idéas why it’s not working? I’ve installed the CLI version by cloning the repository and building via Yarn.

Running on Windows 10 Enterprise, 22H2 with Photoshop 2022 ( 23.1.0 )  
It’s an enterprise environment without Creative Cloud App, so I’m unable to install the UI version of the UXP Developer Tools.

---

<div class="post-metadata">

**Author:** ![dongdt\_pxz](https://avatars.discourse-cdn.com/v4/letter/d/858c86/32.png) [@dongdt\_pxz](https://forums.creativeclouddeveloper.com/u/dongdt_pxz)\
**Post date:** [May 15, 2024, 6:38pm UTC](https://forums.creativeclouddeveloper.com/t/uxp-devtools-cli-websocket-error-object-object/7528/2 "2024-05-15T18:38:20Z")

</div>

Your ‘localhost’ is resolved as IP v6 instead of v4

Find this in the devtools-cli repo:  
`ws://localhost:${port}/socket/cli`;  
Then change it to:  
`ws://127.0.0.1:${port}/socket/cli`;

---

<div class="post-metadata">

**Author:** ![WilliamSBergqvist](https://avatars.discourse-cdn.com/v4/letter/w/ea666f/32.png) [@WilliamSBergqvist](https://forums.creativeclouddeveloper.com/u/WilliamSBergqvist)\
**Post date:** [May 20, 2024, 8:12am UTC](https://forums.creativeclouddeveloper.com/t/uxp-devtools-cli-websocket-error-object-object/7528/3 "2024-05-20T08:12:52Z")

</div>

Marvelous! Test plug-in loads like a charm with the above fix.

If anyone stumbles upon this issue again; the main issue seems to be row 105 in devtools-cli/packages/uxp-devtools-core/src/core/client/connection/CliClientController.js

There are a few other places where localhost is referenced, might be a good idea to adjust there as well, I only adjusted the above line though, to see if I could get the application to load a test plugin, and it finally did!

This is something I never would have solved on my own, I can’t thank you enough @dongdt_pxz!
