Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Presence callback error following an immediate disconnect #161

Closed
mattheworiordan opened this issue Nov 13, 2015 · 1 comment
Closed

Presence callback error following an immediate disconnect #161

mattheworiordan opened this issue Nov 13, 2015 · 1 comment
Assignees
Labels
bug Something isn't working. It's clear that this does need to be fixed.

Comments

@mattheworiordan
Copy link
Member

Not sure how easy this is to replicate, but when running the demo chat app, if the connection fails immediately (due to known realtime issue 370), strangely the RealtimePresence class throws an odd error about a callback not exist. The callback is not user provided, so this is an internal error.

This is happening when running the demo at https://github.com/ably/demo-mobile-phonegap-cordova, the initialisation of the lib is https://github.com/ably/demo-mobile-phonegap-cordova/blob/master/www/js/app.js#L112-L116 (with log level 5), and the channel attachment and presence is pretty standard https://github.com/ably/demo-mobile-phonegap-cordova/blob/master/www/js/app.js#L150-L172

Complete log is:

ably-0.8.7.js:4103Ably: Rest(): started
2015-11-13 10:46:46.131 ably-0.8.7.js:4103Ably: Auth(): using token auth with authUrl
2015-11-13 10:46:46.132 ably-0.8.7.js:4103Ably: Realtime.ConnectionManager(): started
2015-11-13 10:46:46.132 ably-0.8.7.js:4103Ably: Realtime.ConnectionManager(): requested transports = [web_socket,xhr,iframe,jsonp]
2015-11-13 10:46:46.132 ably-0.8.7.js:4103Ably: Realtime.ConnectionManager(): available http transports = [xhr,iframe,jsonp]
2015-11-13 10:46:46.132 ably-0.8.7.js:4103Ably: Realtime.ConnectionManager(): available transports = [web_socket,xhr,iframe,jsonp]
2015-11-13 10:46:46.133 ably-0.8.7.js:4103Ably: Realtime.ConnectionManager(): http hosts = [rest.ably.io,A.ably-realtime.com,B.ably-realtime.com,C.ably-realtime.com,D.ably-realtime.com,E.ably-realtime.com]
2015-11-13 10:46:46.133 ably-0.8.7.js:4103Ably: Connection.connect(): 
2015-11-13 10:46:46.133 ably-0.8.7.js:4103 Ably: ConnectionManager.requestState(): requested state: connecting
2015-11-13 10:46:46.133 ably-0.8.7.js:4103 Ably: ConnectionManager.cancelTransitionTimer(): 
2015-11-13 10:46:46.134 ably-0.8.7.js:4103 Ably: ConnectionManager.enactStateChange: setting new state: connecting; reason = undefined
2015-11-13 10:46:46.134 ably-0.8.7.js:4103Ably: RealtimeChannel(): started; name = mobile:chat
2015-11-13 10:46:46.134 ably-0.8.7.js:4103Ably: Channel(): started; name = mobile:chat
2015-11-13 10:46:46.136 ably-0.8.7.js:4103Ably: RealtimeChannel.setPendingState: name = mobile:chat, state = attaching
2015-11-13 10:46:46.136 ably-0.8.7.js:4103Ably: RealtimeChannel.setPendingState: not connected
2015-11-13 10:46:46.136 ably-0.8.7.js:4103Ably: RealtimePresence.enterClient(): entering; channel = mobile:chat, client = Matt
2015-11-13 10:46:46.138 ably-0.8.7.js:4103Ably: ConnectionManager.connectImpl(): starting connection
2015-11-13 10:46:46.139 ably-0.8.7.js:4103Ably: ConnectionManager.startTransitionTimer(): transitionState: connecting
2015-11-13 10:46:46.139 ably-0.8.7.js:4103Ably: Auth.requestToken(): using token auth with auth_url
2015-11-13 10:46:46.139 ably-0.8.7.js:4103Ably: Auth.requestToken().tokenRequestCallback: Sending; https://www.ably.io/ably-auth/token-request/demos; Params: {"clientId":"Matt"}
2015-11-13 10:46:46.141 controller.js:44 Connection state changed: connecting
2015-11-13 10:46:46.906 ably-0.8.7.js:4103Ably: Auth.requestToken().tokenRequestCallback: Received; body: {"keyName":"I2E_JQ.r_aOYg","clientId":"Matt","ttl":43200000,"timestamp":1447411603719,"capability":"{\"*\":[\"*\"]}","nonce":"6c83597244492d578efd8608a90c368c","mac":"JwthEf9WTeYRhMILiwXra5yIL9JGvUBmAqtNk4bdaEE="}
2015-11-13 10:46:46.906 ably-0.8.7.js:4103Ably: Auth.requestToken().requestToken: Sending POST; function (host) { return rest.baseUri(host) + '/keys/' + keyName + '/requestToken';}; Token params: {"keyName":"I2E_JQ.r_aOYg","clientId":"Matt","ttl":43200000,"timestamp":1447411603719,"capability":"{\"*\":[\"*\"]}","nonce":"6c83597244492d578efd8608a90c368c","mac":"JwthEf9WTeYRhMILiwXra5yIL9JGvUBmAqtNk4bdaEE="}
2015-11-13 10:46:47.162 ably-0.8.7.js:4103Ably: Auth.getToken(): token received
2015-11-13 10:46:47.162 ably-0.8.7.js:4103Ably: ConnectionManager.chooseTransport(): 
2015-11-13 10:46:47.164 ably-0.8.7.js:4103Ably: ConnectionManager.chooseTransport(): Transport recovery mode = clean
2015-11-13 10:46:47.165 ably-0.8.7.js:4103Ably: ConnectionManager.chooseTransportForHost(): trying xhr
2015-11-13 10:46:47.166 ably-0.8.7.js:4103Ably: CometTransport.connect(): starting
2015-11-13 10:46:47.167 ably-0.8.7.js:4103Ably: CometTransport.connect(): uri: https://rest.ably.io:443/comet/connect
2015-11-13 10:46:47.167 ably-0.8.7.js:4103Ably: Auth.getToken(): using cached token; expires = 1447454804019
2015-11-13 10:46:47.168 ably-0.8.7.js:4103Ably: CometTransport.connect(): connectParams:?clientId=Matt&access_token=I2E_JQ.DAg1CbTQU-bNiMTpIJLzSVZRXvRaTzguJZuCGqEIUk5RxbozIic-vXjXbp344pyCWqo1Ztp1LnjOXCzxJQYeX9C5V3dNAUqsx1InYqTKyiIWetHrmHRfquHXw3TH8aTMW
2015-11-13 10:46:47.636 ably-0.8.7.js:4103Ably: XHRTransport.tryConnect(): viable transport XHRTransport; uri=https://rest.ably.io:443/comet/; isConnected=false
2015-11-13 10:46:47.637 ably-0.8.7.js:4103Ably: ConnectionManager.chooseTransportForHost(): transport xhr connecting
2015-11-13 10:46:47.637 ably-0.8.7.js:4103Ably: ConnectionManager.setTransportPending(): transport = XHRTransport; uri=https://rest.ably.io:443/comet/; isConnected=false; mode = clean
2015-11-13 10:46:47.638 ably-0.8.7.js:4103Ably: ConnectionManager.chooseTransport(): Establishing http transport: XHRTransport; uri=https://rest.ably.io:443/comet/; isConnected=false
2015-11-13 10:46:47.638 ably-0.8.7.js:4103Ably: Transport.onProtocolMessage(): received; [ProtocolMessage; action=CONNECTED; connectionId=ep361ax7sw; connectionKey=47e50!ep361ax7swPQzHNz-c3f47e50; connectionSerial=-1]
2015-11-13 10:46:47.638 ably-0.8.7.js:4103Ably: CometTransport.onConnect(): baseUri = https://rest.ably.io:443/comet/47e50!ep361ax7swPQzHNz-c3f47e50; connectionKey = ep361ax7swPQzHNz-c3f47e50
2015-11-13 10:46:47.639 ably-0.8.7.js:4103Ably: ConnectionManager.activateTransport(): transport = XHRTransport; uri=https://rest.ably.io:443/comet/; isConnected=true
2015-11-13 10:46:47.639 ably-0.8.7.js:4103Ably: ConnectionManager.activateTransport(): connectionKey =  ep361ax7swPQzHNz-c3f47e50
2015-11-13 10:46:47.639 ably-0.8.7.js:4103 Ably: ConnectionManager.activateTransport(): connectionSerial =  -1
2015-11-13 10:46:47.639 ably-0.8.7.js:4103 Ably: ConnectionManager.activateTransport(): connectionId =  ep361ax7sw
2015-11-13 10:46:47.640 ably-0.8.7.js:4103 Ably: ConnectionManager.activateTransport(): clientId =  Matt
2015-11-13 10:46:47.640 ably-0.8.7.js:4103 Ably: RealtimeChannel.attachImpl(): sending ATTACH message
2015-11-13 10:46:47.640 ably-0.8.7.js:4103 Ably: ConnectionManager.send(): queueing msg; [ProtocolMessage; action=ATTACH; channel=mobile:chat]
2015-11-13 10:46:47.641 ably-0.8.7.js:4103 Ably: ConnectionManager.queue(): queueing event
2015-11-13 10:46:47.641 ably-0.8.7.js:4103 Ably: ConnectionManager.notifyState(): new state: connected
2015-11-13 10:46:47.641 ably-0.8.7.js:4103Ably: ConnectionManager.cancelTransitionTimer(): 
2015-11-13 10:46:47.642 ably-0.8.7.js:4103Ably: ConnectionManager.enactStateChange: setting new state: connected; reason = undefined
2015-11-13 10:46:47.642 ably-0.8.7.js:4103Ably: ConnectionManager.sendQueuedMessages(): sending 1 queued messages
2015-11-13 10:46:47.642 ably-0.8.7.js:4103Ably: Protocol.send(): sending msg; [ProtocolMessage; action=ATTACH; channel=mobile:chat]
2015-11-13 10:46:47.643 ably-0.8.7.js:4103Ably: ConnectionManager.chooseTransport(): upgrading ... connectionKey = ep361ax7swPQzHNz-c3f47e50
2015-11-13 10:46:47.643 ably-0.8.7.js:4103Ably: ConnectionManager.chooseTransportForHost(): trying web_socket
2015-11-13 10:46:47.643 ably-0.8.7.js:4103Ably: WebSocketTransport.startConnectTimeout(): undefined
2015-11-13 10:46:47.644 ably-0.8.7.js:4103Ably: WebSocketTransport.connect(): starting
2015-11-13 10:46:47.644 ably-0.8.7.js:4103Ably: WebSocketTransport.connect(): uri: wss://realtime.ably.io:443/
2015-11-13 10:46:47.644 ably-0.8.7.js:4103Ably: Auth.getToken(): using cached token; expires = 1447454804019
2015-11-13 10:46:47.644 ably-0.8.7.js:4103Ably: WebSocketTransport.connect(): authParams: access_token: I2E_JQ.DAg1CbTQU-bNiMTpIJLzSVZRXvRaTzguJZuCGqEIUk5RxbozIic-vXjXbp344pyCWqo1Ztp1LnjOXCzxJQYeX9C5V3dNAUqsx1InYqTKyiIWetHrmHRfquHXw3TH8aTMW;
2015-11-13 10:46:47.645 controller.js:44 Connection state changed: connected
2015-11-13 10:46:47.836 ably-0.8.7.js:4103Ably: Transport.onProtocolMessage(): received; [ProtocolMessage; action=ATTACHED; channel=mobile:chat; channelSerial=50d3b44318048:134; connectionSerial=0; flags=1]
2015-11-13 10:46:47.836 ably-0.8.7.js:4103Ably: RealtimeChannel.setAttached: activating channel; name = mobile:chat; message flags = 1
2015-11-13 10:46:47.837 ably-0.8.7.js:4103Ably: PresenceMap.awaitSync(); channel = mobile:chat: undefined
2015-11-13 10:46:47.838 ably-0.8.7.js:4103Ably: PresenceMap.startSync(); channel = mobile:chat; syncInProgress = false: undefined
2015-11-13 10:46:47.838 ably-0.8.7.js:4103Ably: RealtimePresence.setAttached: sending queued presence; action = 2
2015-11-13 10:46:47.839 ably-0.8.7.js:4103Ably: ConnectionManager.send(): sending event
2015-11-13 10:46:47.840 ably-0.8.7.js:4103Ably: Protocol.send(): sending msg; [ProtocolMessage; action=PRESENCE; channel=mobile:chat; presence=[ [PresenceMessage; action=2; clientId=Matt] ]]
2015-11-13 10:46:47.840 ably-0.8.7.js:4103Ably: Transport.onProtocolMessage(): received; [ProtocolMessage; action=SYNC; channel=mobile:chat; connectionSerial=1; presence=[ [PresenceMessage; action=1; id=SuMBout5wV-8:0; timestamp=1447401492281; clientId=Bruce; connectionId=SuMBout5wV; data (json)={"isTyping":false}] ]]
2015-11-13 10:46:47.841 ably-0.8.7.js:4103Ably: RealtimePresence.setPresence(): received presence for 1 participants; syncChannelSerial = undefined
2015-11-13 10:46:47.841 ably-0.8.7.js:4103Ably: PresenceMap.endSync(); channel = mobile:chat; syncInProgress = true: undefined
2015-11-13 10:46:48.043 ably-0.8.7.js:4103Ably: Transport.onProtocolMessage(): received; [ProtocolMessage; action=ACK; count=1]
2015-11-13 10:46:48.043 ably-0.8.7.js:4103Ably: Protocol.onAck(): serial = 0; count = 1
2015-11-13 10:46:48.044 ably-0.8.7.js:4103Ably: MessageQueue.completeMessages(): serial = 0; count = 1
2015-11-13 10:46:48.044 ably-0.8.7.js:4103Ably: RealtimeChannel.history(): channel = mobile:chat
2015-11-13 10:46:48.045 ably-0.8.7.js:4103Ably: Auth.getToken(): using cached token; expires = 1447454804019
2015-11-13 10:46:48.046 ably-0.8.7.js:4103Ably: Resource.get(): Sending; /channels/mobile%3Achat/messages?limit=50&direction=backwards&envelope=json
2015-11-13 10:46:48.047 ably-0.8.7.js:4103Ably: RealtimePresence.history(): channel = undefined
2015-11-13 10:46:48.048 ably-0.8.7.js:4103Ably: Auth.getToken(): using cached token; expires = 1447454804019
2015-11-13 10:46:48.048 ably-0.8.7.js:4103Ably: Resource.get(): Sending; /channels/mobile%3Achat/presence/history?limit=50&direction=backwards&envelope=json
2015-11-13 10:46:48.050 ably-0.8.7.js:4103Ably: Transport.onProtocolMessage(): received; [ProtocolMessage; action=PRESENCE; id=ep361ax7sw-0; channel=mobile:chat; channelSerial=50d3b44318048:135; connectionId=ep361ax7sw; connectionSerial=2; count=4; timestamp=1447411604890; presence=[ [PresenceMessage; action=2; clientId=Matt; connectionId=ep361ax7sw] ]]
2015-11-13 10:46:48.051 ably-0.8.7.js:4103Ably: RealtimePresence.setPresence(): received presence for 1 participants; syncChannelSerial = undefined
2015-11-13 10:46:48.052 ably-0.8.7.js:4103Ably: PresenceMap.endSync(); channel = mobile:chat; syncInProgress = false: undefined
2015-11-13 10:46:48.108 ably-0.8.7.js:4103 Ably: WebSocketTransport.onWsOpen(): opened WebSocket
2015-11-13 10:46:48.109 ably-0.8.7.js:4103 Ably: WebSocketTransport.tryConnect(): viable transport WebSocketTransport; uri=wss://realtime.ably.io:443/?upgrade=ep361ax7swPQzHNz-c3f47e50&clientId=Matt…Xbp344pyCWqo1Ztp1LnjOXCzxJQYeX9C5V3dNAUqsx1InYqTKyiIWetHrmHRfquHXw3TH8aTMW
2015-11-13 10:46:48.110 ably-0.8.7.js:4103 Ably: ConnectionManager.chooseTransportForHost(): transport web_socket connecting
2015-11-13 10:46:48.110 ably-0.8.7.js:4103 Ably: ConnectionManager.setTransportPending(): transport = WebSocketTransport; uri=wss://realtime.ably.io:443/?upgrade=ep361ax7swPQzHNz-c3f47e50&clientId=Matt…Xbp344pyCWqo1Ztp1LnjOXCzxJQYeX9C5V3dNAUqsx1InYqTKyiIWetHrmHRfquHXw3TH8aTMW; mode = upgrade
2015-11-13 10:46:48.111 ably-0.8.7.js:4103 Ably: WebSocketTransport.onWsData(): data received; length = 364; type = string
2015-11-13 10:46:48.112 ably-0.8.7.js:4103 Ably: Transport.onProtocolMessage(): received; [ProtocolMessage; action=CONNECTED; connectionId=e7ZKLBtk_y; connectionKey=e7ZKLBtk_y9a2ncS-8acd22ee; connectionSerial=-1; error=[ErrorInfo: Unable to recover connection: not found (ep361ax7swPQzHNz); statusCode=400; code=80008]]
2015-11-13 10:46:48.113 ably-0.8.7.js:4103 Ably: RealtimeChannel.setSuspended: deactivating channel; name = mobile:chat, err Unable to recover connection: not found (ep361ax7swPQzHNz)
2015-11-13 10:46:48.113 ably-0.8.7.js:4103 Ably: RealtimeChannel.failPendingMessages: channel; name = mobile:chat, err = [ErrorInfo: Unable to recover connection: not found (ep361ax7swPQzHNz); statusCode=400; code=80008]
2015-11-13 10:46:48.114 ably-0.8.7.js:4103 Ably: ConnectionManager.scheduleTransportActivation(): Scheduling transport; transport = WebSocketTransport; uri=wss://realtime.ably.io:443/?upgrade=ep361ax7swPQzHNz-c3f47e50&clientId=Matt…Xbp344pyCWqo1Ztp1LnjOXCzxJQYeX9C5V3dNAUqsx1InYqTKyiIWetHrmHRfquHXw3TH8aTMW
2015-11-13 10:46:48.114 ably-0.8.7.js:4103 Ably: ConnectionManager.scheduleTransportActivation(): Activating transport; transport = WebSocketTransport; uri=wss://realtime.ably.io:443/?upgrade=ep361ax7swPQzHNz-c3f47e50&clientId=Matt…Xbp344pyCWqo1Ztp1LnjOXCzxJQYeX9C5V3dNAUqsx1InYqTKyiIWetHrmHRfquHXw3TH8aTMW
2015-11-13 10:46:48.114 ably-0.8.7.js:4103 Ably: ConnectionManager.activateTransport(): transport = WebSocketTransport; uri=wss://realtime.ably.io:443/?upgrade=ep361ax7swPQzHNz-c3f47e50&clientId=Matt…Xbp344pyCWqo1Ztp1LnjOXCzxJQYeX9C5V3dNAUqsx1InYqTKyiIWetHrmHRfquHXw3TH8aTMW
2015-11-13 10:46:48.114 ably-0.8.7.js:4103 Ably: ConnectionManager.activateTransport(): connectionKey =  ep361ax7swPQzHNz-c3f47e50
2015-11-13 10:46:48.115 ably-0.8.7.js:4103 Ably: ConnectionManager.activateTransport(): connectionSerial =  2
2015-11-13 10:46:48.115 ably-0.8.7.js:4103 Ably: ConnectionManager.activateTransport(): connectionId =  ep361ax7sw
2015-11-13 10:46:48.115 ably-0.8.7.js:4103 Ably: ConnectionManager.notifyState(): new state: connected
2015-11-13 10:46:48.116 ably-0.8.7.js:4103Ably: CometTransport.disconnect(): 
2015-11-13 10:46:48.116 ably-0.8.7.js:4103Ably: CometTransport.requestClose(): closing = false
2015-11-13 10:46:48.117 ably-0.8.7.js:4103Ably: ConnectionManager.deactivateTransport(): transport = XHRTransport; uri=https://rest.ably.io:443/comet/; isConnected=true
2015-11-13 10:46:48.117 ably-0.8.7.js:4103Ably: ConnectionManager.deactivateTransport(): state = disconnected
2015-11-13 10:46:48.117 ably-0.8.7.js:4103Ably: CometTransport.dispose(): 
2015-11-13 10:46:48.118 ably-0.8.7.js:4103Ably: CometTransport.dispose(): aborting recv request
2015-11-13 10:46:48.118 ably-0.8.7.js:4103Ably: Transport.onDisconnect(): err = undefined
2015-11-13 10:46:48.118 ably-0.8.7.js:4103Ably: ConnectionManager.deactivateTransport(): transport = XHRTransport; uri=https://rest.ably.io:443/comet/; isConnected=false
2015-11-13 10:46:48.119 ably-0.8.7.js:4103Ably: ConnectionManager.deactivateTransport(): state = disconnected
2015-11-13 10:46:48.119 ably-0.8.7.js:4103Ably: ConnectionManager.scheduleTransportActivation(): Syncing transport; transport = WebSocketTransport; uri=wss://realtime.ably.io:443/?upgrade=ep361ax7swPQzHNz-c3f47e50&clientId=Matt…Xbp344pyCWqo1Ztp1LnjOXCzxJQYeX9C5V3dNAUqsx1InYqTKyiIWetHrmHRfquHXw3TH8aTMW
2015-11-13 10:46:48.197 ably-0.8.7.js:4103 Ably: WebSocketTransport.onWsData(): data received; length = 109; type = string
2015-11-13 10:46:48.198 ably-0.8.7.js:4103 Ably: Transport.onProtocolMessage(): received; [ProtocolMessage; action=ERROR; timestamp=1447411605053; error=[ErrorInfo: Invalid message id; statusCode=400; code=40007]]
2015-11-13 10:46:48.198 ably-0.8.7.js:4103 Ably: Transport.onProtocolMessage(): error; connectionKey = ep361ax7swPQzHNz-c3f47e50; err = {"message":"Invalid message id","code":40007,"statusCode":400}
2015-11-13 10:46:48.199 ably-0.8.7.js:4103 Ably: Transport.sendClose(): 
2015-11-13 10:46:48.200 ably-0.8.7.js:4103Ably: ConnectionManager.deactivateTransport(): transport = WebSocketTransport; uri=wss://realtime.ably.io:443/?upgrade=ep361ax7swPQzHNz-c3f47e50&clientId=Matt…Xbp344pyCWqo1Ztp1LnjOXCzxJQYeX9C5V3dNAUqsx1InYqTKyiIWetHrmHRfquHXw3TH8aTMW
2015-11-13 10:46:48.200 ably-0.8.7.js:4103Ably: ConnectionManager.deactivateTransport(): state = failed
2015-11-13 10:46:48.201 ably-0.8.7.js:4103Ably: ConnectionManager.deactivateTransport(): reason =  Invalid message id
2015-11-13 10:46:48.201 ably-0.8.7.js:4103Ably: ConnectionManager.notifyState(): new state: failed
2015-11-13 10:46:48.202 ably-0.8.7.js:4103Ably: ConnectionManager.cancelTransitionTimer(): 
2015-11-13 10:46:48.202 ably-0.8.7.js:4103Ably: ConnectionManager.enactStateChange: setting new state: failed; reason = Invalid message id
2015-11-13 10:46:48.204 ably-0.8.7.js:4103Ably: RealtimeChannel.setSuspended: deactivating channel; name = mobile:chat, err Invalid message id
2015-11-13 10:46:48.205 ably-0.8.7.js:4103Ably: RealtimeChannel.failPendingMessages: channel; name = mobile:chat, err = {"statusCode":400,"code":40007,"message":"Invalid message id"}
2015-11-13 10:46:48.206 ably-0.8.7.js:4103Ably: WebSocketTransport.dispose(): 
2015-11-13 10:46:48.208 controller.js:44 Connection state changed: failed
2015-11-13 10:46:51.258 ably-0.8.7.js:4103Ably: Resource.get(): Received; /channels/mobile%3Achat/presence/history?limit=50&direction=backwards&envelope=json&rnd=10608553257770836; Headers: Link=<./history?start=0&end=1447411605422&limit=50&direction=backwards&format=json&first_end=1447411605422&from_date=1447411605422>; rel="first",<./history?start=0&end=1447411605422&limit=50&direction=backwards&format=json&first_end=1447411605422&from_date=1447411605422>; rel="current",<./history?from_serial=5e1ca36320075%3A75&limit=50&direction=backwards&format=json&first_end=1447411605422>; rel="next"&Content-Type=application/json; Body: [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
2015-11-13 10:46:51.260 ably-0.8.7.js:4103Ably: Resource.get(): Received; /channels/mobile%3Achat/messages?limit=50&direction=backwards&envelope=json&rnd=7450442691333592; Headers: Link=<./messages?start=0&end=1447411605084&limit=50&direction=backwards&format=json&first_end=1447411605084&from_date=1447411605084>; rel="first",<./messages?start=0&end=1447411605084&limit=50&direction=backwards&format=json&first_end=1447411605084&from_date=1447411605084>; rel="current"&Content-Type=application/json; Body: [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
2015-11-13 10:46:51.370 ably-0.8.7.js:4103Ably: WebSocketTransport.onWsData(): data received; length = 12; type = string
2015-11-13 10:46:51.370 ably-0.8.7.js:4103Ably: Transport.onProtocolMessage(): received; [ProtocolMessage; action=CLOSED]
2015-11-13 10:46:51.370 ably-0.8.7.js:4103Ably: Transport.onClose(): err = undefined
2015-11-13 10:46:51.371 ably-0.8.7.js:4103Ably: ConnectionManager.deactivateTransport(): transport = WebSocketTransport; uri=wss://realtime.ably.io:443/?upgrade=ep361ax7swPQzHNz-c3f47e50&clientId=Matt…Xbp344pyCWqo1Ztp1LnjOXCzxJQYeX9C5V3dNAUqsx1InYqTKyiIWetHrmHRfquHXw3TH8aTMW
2015-11-13 10:46:51.371 ably-0.8.7.js:4103Ably: ConnectionManager.deactivateTransport(): state = closed
2015-11-13 10:46:51.371 ably-0.8.7.js:4103Ably: WebSocketTransport.onWsClose(): closed WebSocket; wasClean = true; code = 1000
2015-11-13 10:46:51.371 ably-0.8.7.js:4103Ably: Transport.onDisconnect(): err = null
2015-11-13 10:46:51.371 ably-0.8.7.js:4103Ably: ConnectionManager.deactivateTransport(): transport = WebSocketTransport; uri=wss://realtime.ably.io:443/?upgrade=ep361ax7swPQzHNz-c3f47e50&clientId=Matt…Xbp344pyCWqo1Ztp1LnjOXCzxJQYeX9C5V3dNAUqsx1InYqTKyiIWetHrmHRfquHXw3TH8aTMW
2015-11-13 10:46:51.372 ably-0.8.7.js:4103Ably: ConnectionManager.deactivateTransport(): state = disconnected
2015-11-13 10:46:51.372 ably-0.8.7.js:4103Ably: WebSocketTransport.dispose(): closing websocket
2015-11-13 10:46:54.095 ably-0.8.7.js:4103Ably: RealtimePresence.updateClient(): updateing; channel = mobile:chat, client = Matt
callback
undefined
2015-11-13 10:47:02.108 ably-0.8.7.js:8433 Uncaught TypeError: callback is not a function(anonymous function) @ ably-0.8.7.js:8433RealtimeChannel.attach @ ably-0.8.7.js:7970RealtimePresence._enterOrUpdateClient @ ably-0.8.7.js:8429RealtimePresence.update @ ably-0.8.7.js:8396ChatApp.sendTypingNotification @ app.js:221(anonymous function) @ controller.js:92MicroEvent.trigger @ vendor.js:40(anonymous function) @ view.js:52n.event.dispatch @ vendor.js:6r.handle @ vendor.js:6
2015-11-13 10:47:36.943 ably-0.8.7.js:4103 Ably: RealtimePresence.updateClient(): updateing; channel = mobile:chat, client = Matt
@mattheworiordan mattheworiordan added the bug Something isn't working. It's clear that this does need to be fixed. label Nov 13, 2015
@SimonWoolf SimonWoolf self-assigned this Nov 13, 2015
@SimonWoolf
Copy link
Member

Fixed by #162

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working. It's clear that this does need to be fixed.
Development

No branches or pull requests

2 participants