This is to follow that topic, but I can't answer the postso I o pen a new one.
I did Call Spark.getPlayer().disconnect(true); in theAuthenticationResponse
Very often I have this error :
{"stackTrace":"\tat 296608-response-AuthenticationResponse:5\n","error":"TypeError: Cannot call method \"disconnect\" of null (296608-response-AuthenticationResponse#5)","script":"AuthenticationResponse"}
How can the Spark.getPlayer() be null in the AuthenticationResponse ?
How can I fix that ?
Thanks !
Best Answer
C
Customer Support
said
over 4 years ago
Hi Eric,
The only way you'd get null in the AuthenticationResponse would be if there was an error Authenticating, examples of this would include using an invalid token for a social auth or a bad userName/password combination. I can see quite a few failed FacebookConnectReqeusts in your game, they look like they're linked to the access token so you should start your investigations there.
Thanks,
Liam
1 Comment
Customer Support
said
over 4 years ago
Answer
Hi Eric,
The only way you'd get null in the AuthenticationResponse would be if there was an error Authenticating, examples of this would include using an invalid token for a social auth or a bad userName/password combination. I can see quite a few failed FacebookConnectReqeusts in your game, they look like they're linked to the access token so you should start your investigations there.
Eric Moncada
Hi,
This is to follow that topic, but I can't answer the postso I o pen a new one.
I did Call Spark.getPlayer().disconnect(true); in the AuthenticationResponse
Very often I have this error :
{"stackTrace":"\tat 296608-response-AuthenticationResponse:5\n","error":"TypeError: Cannot call method \"disconnect\" of null (296608-response-AuthenticationResponse#5)","script":"AuthenticationResponse"}
How can the Spark.getPlayer() be null in the AuthenticationResponse ?
How can I fix that ?
Thanks !
Hi Eric,
The only way you'd get null in the AuthenticationResponse would be if there was an error Authenticating, examples of this would include using an invalid token for a social auth or a bad userName/password combination. I can see quite a few failed FacebookConnectReqeusts in your game, they look like they're linked to the access token so you should start your investigations there.
Thanks,
Liam
Customer Support
Hi Eric,
The only way you'd get null in the AuthenticationResponse would be if there was an error Authenticating, examples of this would include using an invalid token for a social auth or a bad userName/password combination. I can see quite a few failed FacebookConnectReqeusts in your game, they look like they're linked to the access token so you should start your investigations there.
Thanks,
Liam
-
Documentation Notes
-
Design issues with user events
-
Using NoSQL
-
Runtime Collections vs Metadata Collections
-
Anonymous authentication from browser app
-
Modules
-
Movement With Unity
-
Problem with url parameters for downloadables
-
Querying NoSql GameSparks database
-
Challenge accesType
See all 2486 topics