open-webrtc-toolkit / owt-client-native

Open WebRTC Toolkit client SDK for native Windows/Linux/iOS applications.
https://01.org/open-webrtc-toolkit
Apache License 2.0
389 stars 181 forks source link

ios conference client get token failed if do join and leave with the same client continually #68

Open JinChengShi opened 5 years ago

JinChengShi commented 5 years ago
  1. ios client login
  2. ios client leave
  3. go to step 1
JinChengShi commented 5 years ago

Test Case '-[TestOld testCC_join_repeat]' started. (conferenceclient.cc:227): Passing token with Base64 decoded is deprecated, please pass it without modification. [2019-03-26 13:31:01] [connect] Successful connection [2019-03-26 13:31:01] [connect] WebSocket Connection 10.239.166.93:8080 v-2 "WebSocket++/0.5.1" /socket.io/?EIO=4&transport=websocket&t=1553578261 101 (conferencesocketsignalingchannel.cc:760): Received ack for message ID: 1 (conferencesocketsignalingchannel.cc:662): On reconnection ticket: eyJwYXJ0aWNpcGFudElkIjoiV0hYaXdTTE1YYnZUcEVfZ0FBQVEiLCJ0aWNrZXRJZCI6ImY3bDYxZGIzN245Iiwibm90QmVmb3JlIjoxNTUzNTc4MjUzMzE5LCJub3RBZnRlciI6MTU1MzU3ODg1MzMxOSwic2lnbmF0dXJlIjoiTVRrMVl6VXlOelZtWVRRMlltRTROREl5WWpGbU56bGlNalkwWVdGaFlUTTRaV0U1TkRnME9HWmhaRGswTUdKaFlUTXdOelU1Wmpsa1pUWmtOREV5WlE9PSJ9 (conferencesocketsignalingchannel.cc:694): Reconnection ticket will expire in: 591seconds (conferenceclient.cc:318): Find streams in the conference. (conferenceclient.cc:1268): OnStreamAdded: mixed stream. 2019-03-26 13:31:02.034018+0800 OWTConference[41566:6394782] Connection success! [2019-03-26 13:31:03] [disconnect] Disconnect close local:[1000,End by user] remote:[1000,End by user] (conferencesocketsignalingchannel.cc:138): Socket.IO disconnected. 2019-03-26 13:31:06.084728+0800 OWTConference[41566:6394780] Leave success! (conferenceclient.cc:227): Passing token with Base64 decoded is deprecated, please pass it without modification. (conferencesocketsignalingchannel.cc:82): Adding duplicated observer. [2019-03-26 13:31:07] [connect] Successful connection [2019-03-26 13:31:07] [connect] WebSocket Connection 10.239.166.93:8080 v-2 "WebSocket++/0.5.1" /socket.io/?EIO=4&transport=websocket&t=1553578267 101 (conferencesocketsignalingchannel.cc:760): Received ack for message ID: 2 (conferencesocketsignalingchannel.cc:662): On reconnection ticket: eyJwYXJ0aWNpcGFudElkIjoiN0t4TnpFNGNZWEczYTQwaUFBQVIiLCJ0aWNrZXRJZCI6Imk0ZGFmdHNtenJnIiwibm90QmVmb3JlIjoxNTUzNTc4MjU4NDgzLCJub3RBZnRlciI6MTU1MzU3ODg1ODQ4Mywic2lnbmF0dXJlIjoiTldabVpqUmtOelZsWlRkaU1EYzNaVGRtWmpFNFltSTBOamxoTkdJME9EaGxNVFV5TmprMVpERmlaRGN5TlRRME5UUXhNMkk1TjJZeE9HWTJORGd3WXc9PSJ9 (conferencesocketsignalingchannel.cc:694): Reconnection ticket will expire in: 591seconds (conferenceclient.cc:318): Find streams in the conference. (conferenceclient.cc:1268): OnStreamAdded: mixed stream. 2019-03-26 13:31:07.162674+0800 OWTConference[41566:6394781] Connection success! [2019-03-26 13:31:08] [disconnect] Disconnect close local:[1000,End by user] remote:[1000,End by user] (conferencesocketsignalingchannel.cc:138): Socket.IO disconnected. 2019-03-26 13:31:11.173977+0800 OWTConference[41566:6394780] Leave success! 2019-03-26 13:31:12.184468+0800 OWTConference[41566:6394785] TIC Read Status [2:0x281cb4480]: 1:57 2019-03-26 13:31:12.186612+0800 OWTConference[41566:6394785] Task <25869FA1-5B82-42D5-930A-AA378E7B80E6>.<0> HTTP load failed (error code: -1005 [4:-4]) 2019-03-26 13:31:12.187090+0800 OWTConference[41566:6394781] NSURLConnection finished with error - code -1005 /Users/webrtc/Documents/TestApp/OWTConference/OWTConferenceTests/TestBase.m:209: error: -[TestOld testCC_join_repeat] : failed - get token error: Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost." UserInfo={NSUnderlyingError=0x2827b4870 {Error Domain=kCFErrorDomainCFNetwork Code=-1005 "The network connection was lost." UserInfo={NSErrorFailingURLStringKey=http://webrtc52.sh.intel.com:3001/createToken/, _kCFStreamErrorDomainKey=4, NSErrorPeerAddressKey=<CFData 0x280aa02d0 [0x1e63a5610]>{length = 16, capacity = 16, bytes = 0x10020bb90aefa65d0000000000000000}, _kCFStreamErrorCodeKey=-4, NSErrorFailingURLKey=http://webrtc52.sh.intel.com:3001/createToken/, NSLocalizedDescription=The network connection was lost.}}, NSErrorFailingURLStringKey=http://webrtc52.sh.intel.com:3001/createToken/, NSErrorFailingURLKey=http://webrtc52.sh.intel.com:3001/createToken/, _kCFStreamErrorDomainKey=4, _kCFStreamErrorCodeKey=-4, NSLocalizedDescription=The network connection was lost.} Test Case '-[TestOld testCC_join_repeat]' failed (10.470 seconds). Test Suite 'TestOld' failed at 2019-03-26 13:31:12.200. Executed 1 test, with 1 failure (0 unexpected) in 10.470 (10.471) seconds Test Suite 'OWTConferenceTests.xctest' failed at 2019-03-26 13:31:12.202. Executed 1 test, with 1 failure (0 unexpected) in 10.470 (10.473) seconds Test Suite 'Selected tests' failed at 2019-03-26 13:31:12.204. Executed 1 test, with 1 failure (0 unexpected) in 10.470 (10.476) seconds

jianjunz commented 5 years ago

Getting token is not a part of SDK's feature. Please check your test app. Perhaps it's because of network issue.

NSLocalizedDescription=The network connection was lost.