We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am receiving this error when i am trying to connect. Following is my code(client library version 13.1.3).
manager = SocketManager(socketURL: URL.init(string: "https://****.*****.in")!) manager.config = .init(arrayLiteral: .log(true),.path("/nextlivetracking/socket.io")) socket = manager.socket(forNamespace: "/nextlivetracking") socket.connect()
Is it the error from client or server side?Is there any mistake in the code above? Following are the logs
2018-04-06 15:31:51.875192+0530 TestingSocketIO[5734:546104] LOG SocketIOClient{/nextlivetracking}: Handling event: statusChange with data: [connecting] 2018-04-06 15:31:51.875625+0530 TestingSocketIO[5734:546104] LOG SocketIOClient{/nextlivetracking}: Joining namespace /nextlivetracking 2018-04-06 15:31:51.875827+0530 TestingSocketIO[5734:546104] LOG SocketManager: Tried connecting socket when engine isn't open. Connecting 2018-04-06 15:31:51.875977+0530 TestingSocketIO[5734:546104] LOG SocketManager: Adding engine 2018-04-06 15:31:51.902203+0530 TestingSocketIO[5734:546683] LOG SocketEngine: Starting engine. Server: https://..in 2018-04-06 15:31:51.902444+0530 TestingSocketIO[5734:546683] LOG SocketEngine: Handshaking 2018-04-06 15:31:51.906528+0530 TestingSocketIO[5734:546683] LOG SocketEnginePolling: Doing polling GET http://..in/nextlivetracking/socket.io/?transport=polling&b64=1 2018-04-06 15:31:56.034573+0530 TestingSocketIO[5734:546677] LOG SocketEnginePolling: Got polling response 2018-04-06 15:31:56.059283+0530 TestingSocketIO[5734:546677] LOG SocketEnginePolling: Got poll message: 97:0{"sid":"3VFop2o3UF2kBYMpAAM-","upgrades":["websocket"],"pingInterval":25000,"pingTimeout":60000} 2018-04-06 15:31:56.083818+0530 TestingSocketIO[5734:546677] LOG SocketEngine: Got message: 0{"sid":"3VFop2o3UF2kBYMpAAM-","upgrades":["websocket"],"pingInterval":25000,"pingTimeout":60000} 2018-04-06 15:31:56.109463+0530 TestingSocketIO[5734:546104] LOG SocketIOClient{/nextlivetracking}: Handling event: ping with data: [] 2018-04-06 15:31:56.109503+0530 TestingSocketIO[5734:546677] LOG SocketEnginePolling: Doing polling GET http://****..in/nextlivetracking/socket.io/?transport=polling&b64=1&sid=3VFop2o3UF2kBYMpAAM- 2018-04-06 15:31:56.110099+0530 TestingSocketIO[5734:546104] LOG SocketManager: Engine opened Connect 2018-04-06 15:31:56.111001+0530 TestingSocketIO[5734:546677] LOG SocketEngine: Writing poll: has data: false 2018-04-06 15:31:56.111695+0530 TestingSocketIO[5734:546677] LOG SocketEnginePolling: Sending poll: as type: 2 2018-04-06 15:31:56.120962+0530 TestingSocketIO[5734:546677] LOG SocketEnginePolling: Created POST string: 1:2 2018-04-06 15:31:56.121907+0530 TestingSocketIO[5734:546677] LOG SocketEnginePolling: POSTing 2018-04-06 15:31:56.122379+0530 TestingSocketIO[5734:546677] LOG SocketEnginePolling: Doing polling POST http://..in/nextlivetracking/socket.io/?transport=polling&b64=1&sid=3VFop2o3UF2kBYMpAAM- 2018-04-06 15:31:56.122768+0530 TestingSocketIO[5734:546677] LOG SocketEngine: Writing poll: 0/nextlivetracking, has data: false 2018-04-06 15:31:56.123324+0530 TestingSocketIO[5734:546677] LOG SocketEnginePolling: Sending poll: 0/nextlivetracking, as type: 4 2018-04-06 15:31:56.269398+0530 TestingSocketIO[5734:546683] LOG SocketEnginePolling: Got polling response 2018-04-06 15:31:56.269636+0530 TestingSocketIO[5734:546683] LOG SocketEnginePolling: Got poll message: 2:40 2018-04-06 15:31:56.269952+0530 TestingSocketIO[5734:546683] LOG SocketEngine: Got message: 40 2018-04-06 15:31:56.270461+0530 TestingSocketIO[5734:546104] LOG SocketParser: Parsing 0 2018-04-06 15:31:56.270512+0530 TestingSocketIO[5734:546683] LOG SocketEnginePolling: Doing polling GET http://..in/nextlivetracking/socket.io/?transport=polling&b64=1&sid=3VFop2o3UF2kBYMpAAM- 2018-04-06 15:31:56.271455+0530 TestingSocketIO[5734:546104] LOG SocketParser: Decoded packet as: SocketPacket {type: 0; data: []; id: -1; placeholders: 0; nsp: /} 2018-04-06 15:31:56.313211+0530 TestingSocketIO[5734:546676] LOG SocketEngine: Flushing probe wait 2018-04-06 15:31:56.434371+0530 TestingSocketIO[5734:546676] LOG SocketEnginePolling: Got polling response 2018-04-06 15:31:56.434621+0530 TestingSocketIO[5734:546676] LOG SocketEnginePolling: Got poll message: 1:1 2018-04-06 15:31:56.434918+0530 TestingSocketIO[5734:546676] LOG SocketEngine: Got message: 1 2018-04-06 15:31:56.435381+0530 TestingSocketIO[5734:546104] LOG SocketManager: Starting reconnect 2018-04-06 15:31:56.435666+0530 TestingSocketIO[5734:546104] LOG SocketManager: Trying to reconnect 2018-04-06 15:31:56.435474+0530 TestingSocketIO[5734:546676] LOG SocketEnginePolling: Doing polling GET http://..in/nextlivetracking/socket.io/?transport=polling&b64=1&sid=3VFop2o3UF2kBYMpAAM- 2018-04-06 15:31:56.435969+0530 TestingSocketIO[5734:546104] LOG SocketIOClient{/nextlivetracking}: Handling event: reconnectAttempt with data: [-1] 2018-04-06 15:31:56.436263+0530 TestingSocketIO[5734:546676] ERROR SocketEngine: Engine tried opening while connected. Assuming this was a reconnect 2018-04-06 15:31:56.436590+0530 TestingSocketIO[5734:546676] LOG SocketEngine: Starting engine. Server: https://..in 2018-04-06 15:31:56.437033+0530 TestingSocketIO[5734:546676] LOG SocketEngine: Handshaking 2018-04-06 15:31:56.437428+0530 TestingSocketIO[5734:546676] LOG SocketEnginePolling: Doing polling GET http://.****.in/nextlivetracking/socket.io/?transport=polling&b64=1 2018-04-06 15:31:56.506217+0530 TestingSocketIO[5734:546677] LOG SocketEnginePolling: Got polling response 2018-04-06 15:31:56.506451+0530 TestingSocketIO[5734:546677] LOG SocketEnginePolling: Got poll message: {"code":1,"message":"Session ID unknown"} 2018-04-06 15:31:56.506866+0530 TestingSocketIO[5734:546677] LOG SocketEngine: Got message: {"code":1,"message":"Session ID unknown"} 2018-04-06 15:31:56.507680+0530 TestingSocketIO[5734:546677] ERROR SocketEngine: Session ID unknown 2018-04-06 15:31:56.508000+0530 TestingSocketIO[5734:546104] ERROR SocketManager: Session ID unknown 2018-04-06 15:31:56.508417+0530 TestingSocketIO[5734:546104] LOG SocketIOClient{/nextlivetracking}: Handling event: error with data: ["Session ID unknown"]
The text was updated successfully, but these errors were encountered:
And it is continuously trying to reconnect forming a loop. Server side version is 1.4.4
Sorry, something went wrong.
No branches or pull requests
I am receiving this error when i am trying to connect. Following is my code(client library version 13.1.3).
manager = SocketManager(socketURL: URL.init(string: "https://****.*****.in")!) manager.config = .init(arrayLiteral: .log(true),.path("/nextlivetracking/socket.io")) socket = manager.socket(forNamespace: "/nextlivetracking") socket.connect()
Is it the error from client or server side?Is there any mistake in the code above?
Following are the logs
2018-04-06 15:31:51.875192+0530 TestingSocketIO[5734:546104] LOG SocketIOClient{/nextlivetracking}: Handling event: statusChange with data: [connecting]
2018-04-06 15:31:51.875625+0530 TestingSocketIO[5734:546104] LOG SocketIOClient{/nextlivetracking}: Joining namespace /nextlivetracking
2018-04-06 15:31:51.875827+0530 TestingSocketIO[5734:546104] LOG SocketManager: Tried connecting socket when engine isn't open. Connecting
2018-04-06 15:31:51.875977+0530 TestingSocketIO[5734:546104] LOG SocketManager: Adding engine
2018-04-06 15:31:51.902203+0530 TestingSocketIO[5734:546683] LOG SocketEngine: Starting engine. Server: https://..in
2018-04-06 15:31:51.902444+0530 TestingSocketIO[5734:546683] LOG SocketEngine: Handshaking
2018-04-06 15:31:51.906528+0530 TestingSocketIO[5734:546683] LOG SocketEnginePolling: Doing polling GET http://..in/nextlivetracking/socket.io/?transport=polling&b64=1
2018-04-06 15:31:56.034573+0530 TestingSocketIO[5734:546677] LOG SocketEnginePolling: Got polling response
2018-04-06 15:31:56.059283+0530 TestingSocketIO[5734:546677] LOG SocketEnginePolling: Got poll message: 97:0{"sid":"3VFop2o3UF2kBYMpAAM-","upgrades":["websocket"],"pingInterval":25000,"pingTimeout":60000}
2018-04-06 15:31:56.083818+0530 TestingSocketIO[5734:546677] LOG SocketEngine: Got message: 0{"sid":"3VFop2o3UF2kBYMpAAM-","upgrades":["websocket"],"pingInterval":25000,"pingTimeout":60000}
2018-04-06 15:31:56.109463+0530 TestingSocketIO[5734:546104] LOG SocketIOClient{/nextlivetracking}: Handling event: ping with data: []
2018-04-06 15:31:56.109503+0530 TestingSocketIO[5734:546677] LOG SocketEnginePolling: Doing polling GET http://****..in/nextlivetracking/socket.io/?transport=polling&b64=1&sid=3VFop2o3UF2kBYMpAAM-
2018-04-06 15:31:56.110099+0530 TestingSocketIO[5734:546104] LOG SocketManager: Engine opened Connect
2018-04-06 15:31:56.111001+0530 TestingSocketIO[5734:546677] LOG SocketEngine: Writing poll: has data: false
2018-04-06 15:31:56.111695+0530 TestingSocketIO[5734:546677] LOG SocketEnginePolling: Sending poll: as type: 2
2018-04-06 15:31:56.120962+0530 TestingSocketIO[5734:546677] LOG SocketEnginePolling: Created POST string: 1:2
2018-04-06 15:31:56.121907+0530 TestingSocketIO[5734:546677] LOG SocketEnginePolling: POSTing
2018-04-06 15:31:56.122379+0530 TestingSocketIO[5734:546677] LOG SocketEnginePolling: Doing polling POST http://..in/nextlivetracking/socket.io/?transport=polling&b64=1&sid=3VFop2o3UF2kBYMpAAM-
2018-04-06 15:31:56.122768+0530 TestingSocketIO[5734:546677] LOG SocketEngine: Writing poll: 0/nextlivetracking, has data: false
2018-04-06 15:31:56.123324+0530 TestingSocketIO[5734:546677] LOG SocketEnginePolling: Sending poll: 0/nextlivetracking, as type: 4
2018-04-06 15:31:56.269398+0530 TestingSocketIO[5734:546683] LOG SocketEnginePolling: Got polling response
2018-04-06 15:31:56.269636+0530 TestingSocketIO[5734:546683] LOG SocketEnginePolling: Got poll message: 2:40
2018-04-06 15:31:56.269952+0530 TestingSocketIO[5734:546683] LOG SocketEngine: Got message: 40
2018-04-06 15:31:56.270461+0530 TestingSocketIO[5734:546104] LOG SocketParser: Parsing 0
2018-04-06 15:31:56.270512+0530 TestingSocketIO[5734:546683] LOG SocketEnginePolling: Doing polling GET http://..in/nextlivetracking/socket.io/?transport=polling&b64=1&sid=3VFop2o3UF2kBYMpAAM-
2018-04-06 15:31:56.271455+0530 TestingSocketIO[5734:546104] LOG SocketParser: Decoded packet as: SocketPacket {type: 0; data: []; id: -1; placeholders: 0; nsp: /}
2018-04-06 15:31:56.313211+0530 TestingSocketIO[5734:546676] LOG SocketEngine: Flushing probe wait
2018-04-06 15:31:56.434371+0530 TestingSocketIO[5734:546676] LOG SocketEnginePolling: Got polling response
2018-04-06 15:31:56.434621+0530 TestingSocketIO[5734:546676] LOG SocketEnginePolling: Got poll message: 1:1
2018-04-06 15:31:56.434918+0530 TestingSocketIO[5734:546676] LOG SocketEngine: Got message: 1
2018-04-06 15:31:56.435381+0530 TestingSocketIO[5734:546104] LOG SocketManager: Starting reconnect
2018-04-06 15:31:56.435666+0530 TestingSocketIO[5734:546104] LOG SocketManager: Trying to reconnect
2018-04-06 15:31:56.435474+0530 TestingSocketIO[5734:546676] LOG SocketEnginePolling: Doing polling GET http://..in/nextlivetracking/socket.io/?transport=polling&b64=1&sid=3VFop2o3UF2kBYMpAAM-
2018-04-06 15:31:56.435969+0530 TestingSocketIO[5734:546104] LOG SocketIOClient{/nextlivetracking}: Handling event: reconnectAttempt with data: [-1]
2018-04-06 15:31:56.436263+0530 TestingSocketIO[5734:546676] ERROR SocketEngine: Engine tried opening while connected. Assuming this was a reconnect
2018-04-06 15:31:56.436590+0530 TestingSocketIO[5734:546676] LOG SocketEngine: Starting engine. Server: https://..in
2018-04-06 15:31:56.437033+0530 TestingSocketIO[5734:546676] LOG SocketEngine: Handshaking
2018-04-06 15:31:56.437428+0530 TestingSocketIO[5734:546676] LOG SocketEnginePolling: Doing polling GET http://.****.in/nextlivetracking/socket.io/?transport=polling&b64=1
2018-04-06 15:31:56.506217+0530 TestingSocketIO[5734:546677] LOG SocketEnginePolling: Got polling response
2018-04-06 15:31:56.506451+0530 TestingSocketIO[5734:546677] LOG SocketEnginePolling: Got poll message: {"code":1,"message":"Session ID unknown"}
2018-04-06 15:31:56.506866+0530 TestingSocketIO[5734:546677] LOG SocketEngine: Got message: {"code":1,"message":"Session ID unknown"}
2018-04-06 15:31:56.507680+0530 TestingSocketIO[5734:546677] ERROR SocketEngine: Session ID unknown
2018-04-06 15:31:56.508000+0530 TestingSocketIO[5734:546104] ERROR SocketManager: Session ID unknown
2018-04-06 15:31:56.508417+0530 TestingSocketIO[5734:546104] LOG SocketIOClient{/nextlivetracking}: Handling event: error with data: ["Session ID unknown"]
The text was updated successfully, but these errors were encountered: