SDP process local offer error, how to fix?

I got error on React app and don’t know how to fix that

dependence versions:

"openvidu-browser": "^2.21.0-beta1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-scripts": "5.0.0"

Full error:

Error: (publish) SDP process local offer error: {"stack":"Error: Failed to execute 'send' on 'WebSocket': Still in CONNECTING state.\n at WebSocketWithReconnection.send (http://localhost:3000/static/js/bundle.js:12141:8)\n at sendRequest (http://localhost:3000/static/js/bundle.js:12543:41)\n at RpcBuilder.encode (http://localhost:3000/static/js/bundle.js:12568:14)\n at JsonRpcClient.send (http://localhost:3000/static/js/bundle.js:11888:9)\n at OpenVidu.sendRequest (http://localhost:3000/static/js/bundle.js:17092:24)\n at successOfferCallback (http://localhost:3000/static/js/bundle.js:21334:32)\n at http://localhost:3000/static/js/bundle.js:21400:11"}

I fix that! I reused token and that was cause