question

Amazon Customer avatar image
Amazon Customer asked

Unable to find key [GameId] in Json message response using Unity Social API

I'm using the unity plugin with the Social API. I have placed the correct api_key.txt. The following happens then the popup shows up with the user logged in as Guest. What am I missing? How I am using the API: //Called in a Start() function Social.Active = GameCircleSocial.Instance; if(!Social.localUser.authenticated) { Social.localUser.Authenticate(function(success:boolean){ Debug.Log(success ? "Authenticated successfully" : "Failed to authenticate"); }); } else { Debug.Log("Not Authenticated!"); } The logcat: 02-25 12:26:45.469 10451-10451/? D/KindleFireIPCProxy﹕ Device appears to be a Kindle Fire. Attempting to connect to Amazon Game Services 02-25 12:26:45.516 10451-10451/? D/KindleFireIPCProxy﹕ Device has compatible version of Amazon Game Services. 02-25 12:26:45.695 7977-8136/? E/AGS_GameAuthorizerHttpGatewayClient﹕ Unable to find key [GameId] in Json message response 02-25 12:26:45.719 7977-8136/? E/AGS_SignatureBasedGameAuthorizer﹕ Error checking game authorization. Returned false. com.amazon.ags.app.service.gateway.GatewayException: Missing response key: GameId at com.amazon.ags.app.service.gameauth.GameAuthorizerHttpGatewayClient.parseGameId(GameAuthorizerHttpGatewayClient.java:191) at com.amazon.ags.app.service.gameauth.GameAuthorizerHttpGatewayClient.isGameAuthorized(GameAuthorizerHttpGatewayClient.java:93) at com.amazon.ags.app.service.gameauth.SignatureBasedGameAuthorizer.callAuthorizationService(SignatureBasedGameAuthorizer.java:67) at com.amazon.ags.app.service.gameauth.SignatureBasedGameAuthorizer.isGameAuthorized(SignatureBasedGameAuthorizer.java:61) at com.amazon.ags.app.session.InMemorySessionManager.authorizeSession(InMemorySessionManager.java:83) at com.amazon.ags.app.service.IncomingHandler.processUniversalAuthorizeSession(IncomingHandler.java:309) at com.amazon.ags.app.service.IncomingHandler.handleMessageOnWorkerThread(IncomingHandler.java:201) at com.amazon.ags.app.service.IncomingHandler$1.run(IncomingHandler.java:176) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:390) at java.util.concurrent.FutureTask.run(FutureTask.java:234) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573) at java.lang.Thread.run(Thread.java:856)
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Jeremie, We had an issue in the internal system and that was causing the error in your app. Now that issue is fixed and your should not have any system error while initializing the Game Circle plugin. Sorry for the inconvenience and thanks for reaching out.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.