# UXP websocket authentication error

**URL:** <https://forums.creativeclouddeveloper.com/t/uxp-websocket-authentication-error/6268>\
**Category:** UXP Developer Tool\
**Created:** [May 5, 2023, 8:02am UTC](https://forums.creativeclouddeveloper.com/t/uxp-websocket-authentication-error/6268 "2023-05-05T08:02:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vijay\_0106](https://avatars.discourse-cdn.com/v4/letter/v/858c86/32.png) [@Vijay\_0106](https://forums.creativeclouddeveloper.com/u/Vijay_0106)\
**Post date:** [May 5, 2023, 8:02am UTC](https://forums.creativeclouddeveloper.com/t/uxp-websocket-authentication-error/6268/1 "2023-05-05T08:02:57Z")

</div>

I’m trying to run the UXP example Websocket “io-websocket-example” from the adobe repo:

And got the below error

npm ERR! code E401  
npm ERR! 401 Unauthorized - GET [https://adobe.trust-adobe.console.banyanops.com/v2/auth?client\_id=ePcIQuesF41DxqDK3gTuUw&nonce=hUTKR\_8cieq3MF7bd7b8U&redirect\_uri=https%3A%2F%2Fartifactory.corp.adobe.com%2Fbnn\_trust\_cb&response\_type=code&scope=openid+profile+email&state=Wj1OziPv0486MPBo3orbNM](https://adobe.trust-adobe.console.banyanops.com/v2/auth?client_id=ePcIQuesF41DxqDK3gTuUw&nonce=hUTKR_8cieq3MF7bd7b8U&redirect_uri=https%3A%2F%2Fartifactory.corp.adobe.com%2Fbnn_trust_cb&response_type=code&scope=openid+profile+email&state=Wj1OziPv0486MPBo3orbNM)

Could you please anyone resolve this?

---

<div class="post-metadata">

**Author:** ![pklaschka](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/pklaschka/32/3162_2.png) [@pklaschka](https://forums.creativeclouddeveloper.com/u/pklaschka)\
**Post date:** [May 5, 2023, 10:33am UTC](https://forums.creativeclouddeveloper.com/t/uxp-websocket-authentication-error/6268/2 "2023-05-05T10:33:23Z")

</div>

While it’s impossible to say for sure (in the future, please mention the steps you’ve taken that led to the error and where you saw the error to make it easier to track down), this sounds like an outdated reference in the `package-lock.json` of the server component.

Could you try deleting the `package-lock.json` and re-running `npm install` to see if it works? Thanks!

---

<div class="post-metadata">

**Author:** ![pklaschka](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/pklaschka/32/3162_2.png) [@pklaschka](https://forums.creativeclouddeveloper.com/u/pklaschka)\
**Post date:** [May 8, 2023, 10:07am UTC](https://forums.creativeclouddeveloper.com/t/uxp-websocket-authentication-error/6268/3 "2023-05-08T10:07:24Z")

</div>

(I’ve now updated the sample so that this problem no longer occurs: [fix(io-websocket-example): Regenerate `package-lock.json` to no longe… · AdobeDocs/uxp-photoshop-plugin-samples@48ec169 · GitHub](https://github.com/AdobeDocs/uxp-photoshop-plugin-samples/commit/48ec1695d12ccc969ef3d9a1869572efdf8f0355))
