AgoraIO / API-Examples-Web

224 stars 199 forks source link

AgoraRTCError CAN_NOT_GET_GATEWAY_SERVER: dynamic key or token timeout #86

Open nguyentho98 opened 7 months ago

nguyentho98 commented 7 months ago

Hello admin, I have a problem creating a call with a validity period of 7 days but I can only use it for the first 24 hours, after 24 hours when I click join callback this problem occurs: We hope to help.

AgoraRTCException: AgoraRTCError CAN_NOT_GET_GATEWAY_SERVER: flag: 4096, message: AgoraRTCError CAN_NOT_GET_GATEWAY_SERVER: dynamic key or token timeout at cA (http://localhost:3012/node_modules/.vite/deps/chunk-PRBXGCMN.js?v=45d98b7d:7855:239) at e3.gatewayInfo.rI.joinChooseServer.lts (http://localhost:3012/node_modules/.vite/deps/chunk-PRBXGCMN.js?v=45d98b7d:7832:80) at async http://localhost:3012/node_modules/.vite/deps/chunk-PRBXGCMN.js?v=45d98b7d:3353:26

plutoless commented 7 months ago

@nguyentho98 the error message has told you what happened. The token you provided has expired. You will need regenerate a token for this user. It's usually best practice to generate a token for user everytime he joins the channel.