UXP websocket authentication error

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

Could you please anyone resolve this?

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!

(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)

1 Like