Permanent disconnections due to channel becoming obsolete for no reason

Since the release of the latest version a few days ago, our users are constantly disconnected due to the fact that channel tokens become outdated with the moment of creation. Our tokens are designed for 5 hours, but we are lucky if they last 5-10 minutes, and we can’t even reconnect to the new channel token when the channel closes until the user is updated.

Javascript error starts its beginning. It looks like this:

NetworkError: 400 Unknown the SID - http://89.talkgadget.google.com/talkgadget/dch/bind?VER=8&clid=C9C2EFC06C7C5163&gsessionid&prop=data&token=AHRlWrrWl611ZMMDw8Apgi5vdYuS9UslofxEiJI47-2n4rkPgmuu1z0AN-UNQcyNEvhck-AYAMSLPru8Aumooz62hYNNbLTbi1a3lTSAzGEyj6TsXZirJYE&RID=rpc&SID=BEBDEFDA92C6A9F7&CI=0&AID=54&TYPE=xmlhttp&zx= gsjg8mb1i987 & t = 1

Then in Firefox Firebug, the console is endlessly spammed

Channel name mismatch message is ignored

Until an update occurs.

Our site is an interactive real-time chat site. Our users send us newsletters that they continue to disable. They leave the site. This requires us not only goodwill with our user base, but also money, and we are powerless to do anything because the error is related to the Google App Engine.

Correct it or roll back to the previous build right away until you figure it out. The latest version does not work.

+4
source share
1 answer

I could not reproduce this, but I still look at it. Meanwhile: if you explicitly call socket.close () after receiving the error, can you then create a new channel object and reconnect? If this does not work, you can try to manually remove the element with id "wcs-iframe" from the DOM. You should be able to use the original token when doing this instead of retrieving a new token.

+2
source

Source: https://habr.com/ru/post/1414053/


All Articles