Sign In Register

How can we help you today?

Start a new topic
Answered

cocos2d-x c++ SDK iOS connection error

Hi


I tried the SDK in iOS simulator.

It works at the beginning, but wait for a while. It seems redirect to another URL and got error.

The network is totally stable.

Here is the log...

The error started from the red line below....


Connected to: wss://preview.gamesparks.net/ws/120246XkdgNG

[GameSparks]: WebSocket callback: {"@class": ".AuthenticatedConnectResponse","connectUrl": "wss://gsp-aeu000-se02.gamesparks.net/ws/120246XkdgNG","requestId": "0"}

[GameSparks]: Received new connection url from gamesparks backend. Establishing new connection now.

[GameSparks]: Create new connection

easywsclient: connecting: host=gsp-aeu000-se02.gamesparks.net port=443 path=/ws/120246XkdgNG

[GameSparks]: Handle authentication connect response with immediate handshake

Connected to: wss://gsp-aeu000-se02.gamesparks.net/ws/120246XkdgNG

[GameSparks]: WebSocket callback: {"@class":".AuthenticatedConnectResponse","nonce":"729b9e18-bad4-4d5f-af44-614b72dbf938","requestId":"0"}

[GameSparks]: Handle authentication connect response with immediate handshake

[GameSparks]: Send immediate request: {

"@class": ".AuthenticatedConnectRequest",

"hmac": "9/KvLqhLEXJm5X10dwx5Zqc7RvqSHd8Cu1K97OzItEw=",

"os": "IOS",

"platform": "IOS",

"deviceId": "DDC5516F-9226-45BC-A021-12C1182CF417",

"authToken": "e62f1899-034f-412b-b8d2-44e10bb44ae8"

}

[GameSparks]: Handshake request sent

[GameSparks]: WebSocket callback: {"@class":".AuthenticatedConnectResponse","authToken":"e6dd2bca-1cd9-4bb6-97c1-7f945ad4f087","requestId":"0","sessionId":"729b9e18-bad4-4d5f-af44-614b72dbf938","userId":"5638c9406e7827b12344749e"}

[GameSparks]: Received auth token

[GameSparks]: Handle authentication connect response with immediate handshake

GameSparks is available.

[GameSparks]: Send immediate request: {

"@class": ".AuthenticationRequest",

"userName": "TOTALLYWRONGUSER",

"password": "TOTALLYWRONGPASSWORD",

"requestId": "1446724435_0"

}

[GameSparks]: Send immediate request: {

"@class": ".AuthenticationRequest",

"userName": "abcdefgh",

"password": "abcdefgh",

"requestId": "1446724435_1"

}

[GameSparks]: Send immediate request: {

"@class": ".DeviceAuthenticationRequest",

"displayName": "JO",

"deviceId": "aaabbb",

"deviceOS": "IOS",

"requestId": "1446724435_2"

}

[GameSparks]: WebSocket callback: {"@class":".AuthenticationResponse","error":{"DETAILS":"UNRECOGNISED"},"newPlayer":false,"requestId":"1446724435_0","scriptData":null}

something went wrong during the authentication

{

"DETAILS": "UNRECOGNISED"

}

[GameSparks]: WebSocket callback: {"@class":".AuthenticationResponse","error":{"DETAILS":"UNRECOGNISED"},"newPlayer":false,"requestId":"1446724435_1","scriptData":null}

something went wrong during the authentication

{

"DETAILS": "UNRECOGNISED"

}

[GameSparks]: WebSocket callback: {"@class":".AuthenticationResponse","authToken":"de3656d8-b6de-42ad-9416-7f0de570af9c","displayName":"JO","newPlayer":false,"requestId":"1446724435_2","scriptData":null,"userId":"5638c9406e7827b12344749e"}

[GameSparks]: Received auth token

you successfully authenticated to GameSparks with your credentials

your displayname is JO.

[GameSparks]: WebSocket callback: {"@class":".RedirectCommand","connectUrl":"wss://preview-live.gamesparks.net/ws/120246XkdgNG"}

[GameSparks]: Received new connection url from gamesparks backend. Establishing new connection now.

[GameSparks]: Create new connection

GameSparks is not available.

[GameSparks]: Send immediate request: {

"@class": ".AuthenticationRequest",

"userName": "TOTALLYWRONGUSER",

"password": "TOTALLYWRONGPASSWORD",

"requestId": "1446724774_3"

}

[GameSparks]: Send immediate request: {

"@class": ".AuthenticationRequest",

"userName": "abcdefgh",

"password": "abcdefgh",

"requestId": "1446724774_4"

}

[GameSparks]: Send immediate request: {

"@class": ".DeviceAuthenticationRequest",

"displayName": "JO",

"deviceId": "aaabbb",

"deviceOS": "IOS",

"requestId": "1446724774_5"

}

easywsclient: connecting: host=preview-live.gamesparks.net port=443 path=/ws/120246XkdgNG

[GameSparks]: Received websocket error: DNS Lookup failed

[GameSparks]: Got websocket error. Please make sure, that you've setup you credentials.

[GameSparks]: Backing off for one seconds

[GameSparks]: Create new connection

easywsclient: connecting: host=preview-live.gamesparks.net port=443 path=/ws/120246XkdgNG

[GameSparks]: Received websocket error: DNS Lookup failed

[GameSparks]: Got websocket error. Please make sure, that you've setup you credentials.

[GameSparks]: Backing off for one seconds

[GameSparks]: Create new connection

easywsclient: connecting: host=preview-live.gamesparks.net port=443 path=/ws/120246XkdgNG

[GameSparks]: Received websocket error: DNS Lookup failed

[GameSparks]: Got websocket error. Please make sure, that you've setup you credentials.

[GameSparks]: Backing off for one seconds

[GameSparks]: Create new connection

easywsclient: connecting: host=preview-live.gamesparks.net port=443 path=/ws/120246XkdgNG

[GameSparks]: Received websocket error: DNS Lookup failed

[GameSparks]: Got websocket error. Please make sure, that you've setup you credentials.

[GameSparks]: Backing off for one seconds

[GameSparks]: Create new connection

easywsclient: connecting: host=preview-live.gamesparks.net port=443 path=/ws/120246XkdgNG

[GameSparks]: Received websocket error: DNS Lookup failed

[GameSparks]: Got websocket error. Please make sure, that you've setup you credentials.

[GameSparks]: Backing off for one seconds

[GameSparks]: Create new connection


Best Answer
Hi
As I said in the original post this has now been fixed.
Thanks
Katie

 

1 Comment

Answer
Hi
As I said in the original post this has now been fixed.
Thanks
Katie

 

Login to post a comment