API-Examples-Web icon indicating copy to clipboard operation
API-Examples-Web copied to clipboard

AgoraRTCError CAN_NOT_GET_GATEWAY_SERVER: dynamic key or token timeout

Open nguyentho98 opened this issue 1 year ago • 1 comments
trafficstars

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

nguyentho98 avatar Mar 25 '24 09:03 nguyentho98

@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.

plutoless avatar Mar 26 '24 12:03 plutoless