100mslive / 100ms-react-native

React Native Live Streaming, Video Conferencing SDK & Sample App
https://www.100ms.live/
MIT License
76 stars 29 forks source link

❓ When this error is reported and how to resolve this? #1266

Closed bhishakBitcanny closed 8 months ago

bhishakBitcanny commented 8 months ago

❓ Question or Support Request

Describe your question or ask for support

{"action": "INIT", "canRetry": undefined, "code": 401, "description": "Received ", "isTerminal": true, "message": "Bad Request", "name": "HTTPError"} Receiving this sometimes sporadically. Kindly let me know when this error is reported and how to resolve this?

"@100mslive/react-native-hms": "^1.9.2" "react-native": "^0.67.5",

github-actions[bot] commented 8 months ago

Hello! Thank you for filing an issue.

Please include relevant logs or detailed description for faster resolutions.

We really appreciate your contribution!

ygit commented 8 months ago

@bhishakBitcanny This is most likely an issue with Auth Token generation. Can you share a sample Auth Token used?

bhishakBitcanny commented 8 months ago

By auth token you mean the room_token used to initiate this call? @ygit

ygit commented 8 months ago

Yes, the Room Token which was used.

bhishakBitcanny commented 8 months ago

Example token - eyJhbGciOiJIUzI1NiJ9.eyJhY2Nlc3Nfa2V5IjoiNjRlZjBlYTRjYTU4NDhmMGUzZDQ2NjNhIiwicm9vbV9pZCI6IjY0ZWYzNTRkN2ZiODk1YmVkNmY3YTMwNSIsInVzZXJfaWQiOiI2NGVmMGVhNGNhNTg0OGYwZTNkNDY2MzgiLCJyb2xlIjoiaG9zdCIsInR5cGUiOiJhcHAiLCJqdGkiOiI0Zjc1ZDEzOC01ZjVlLTRiMjctYjUxZS1jNWY5MTliOWI4NjEiLCJleHAiOjE3MDAxNTE0NjB9.bskV-tCS3pOv58BwXzmhrOlaGUBTO5s892EJlWQa4dc

ygit commented 8 months ago

@bhishakBitcanny can you try this Token:

eyJhbGciOiJIUzI1NiJ9.eyJhY2Nlc3Nfa2V5IjoiNjRlZjBlYTRjYTU4NDhmMGUzZDQ2NjNhIiwicm9vbV9pZCI6IjY0ZWYzNTRkN2ZiODk1YmVkNmY3YTMwNSIsInVzZXJfaWQiOiI2NGVmMGVhNGNhNTg0OGYwZTNkNDY2MzgiLCJyb2xlIjoiaG9zdCIsInR5cGUiOiJhcHAiLCJqdGkiOiI0Zjc1ZDEzOC01ZjVlLTRiMjctYjUxZS1jNWY5MTliOWI4NjEiLCJ2ZXJzaW9uIjoyLCJleHAiOjE3MDA5NTE0NjB9.ls-pAW9fIRbEz_dmH-XhiSRjJ9jh15N201Lds8fZUNA
bhishakBitcanny commented 8 months ago

Thank you @ygit we resolved it on our end so closing this.