Azure / Azure/azure-webpubsub

JS chat example fail on client connection: HTTP Authentication failed

Open
#188 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
147
Forks
96
Avg merge
19h 28m
Merged PRs (30d)
87

Description

I'm testing the service using the chat example and it doesn't work for me.

Following the documentation or downloading the JavaScript chat example from https://github.com/Azure/azure-webpubsub/tree/main/samples/javascript/chatapp, always find an "HTTP Authentication failed; no valid credentials available" when the client try to open a websocket connection with the token url.

![image](https://user-images.githubusercontent.com/6652046/122791667-b7d67500-d2b9-11eb-9aa2-2142b3ff74fd.png)

WIth the Live Trace Tool, I found the following message that doesn't help so much

![image](https://user-images.githubusercontent.com/6652046/122791836-e18f9c00-d2b9-11eb-9ae6-76e64a83bf8a.png)

And the ngrok always has a 401 error on eventhandler

![image](https://user-images.githubusercontent.com/6652046/122791956-ff5d0100-d2b9-11eb-9c54-94be52adb7de.png)

I also checked the token at jwt.ms and It's seemed good

![image](https://user-images.githubusercontent.com/6652046/122792109-20bded00-d2ba-11eb-828b-3426ee7b8b13.png)

any help?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the documentation and samples/javascript/chatapp, then reproduce the WebSocket connection using the token URL. Compare the client error with the Live Trace Tool output and the ngrok 401 response; the issue is complete when the authentication failure is explained and the chat example connects successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, javascript
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.