Sign In Register

How can we help you today?

Start a new topic

Strange API error

Hello,


I am reworking the REST API but I keep getting into the same error:


{"@class":".GameSparksErrorResponse","error":{"message":"com.gamesparks.messages.requests.authenticationrequest"},"message":"com.gamesparks.messages.requests.authenticationrequest"}

What ever request I do, the error keeps being the same.

But if I make an "Mistake" I get:

 

{"@class":".GameSparksErrorResponse","error":{"message":"Unrecognized field \"userName\" (class com.gamesparks.messages.requests.AmazonConnectRequest), not marked as ignorable (18 known properties: \"segments\", \"switchIfPossible\", \"sessionCloseNotifier\", \"requestId\", \"remoteHost\", \"analyticsData\", \"authToken\", \"syncDisplayName\", \"debug\", \"accessToken\", \"language\", \"errorOnSwitch\", \"playerId\", \"doNotCreateNewPlayer\", \"redirectBuilder\", \"sessionId\", \"scriptData\", \"doNotLinkToCurrentPlayer\"])"},"message":"Unrecognized field \"userName\" (class com.gamesparks.messages.requests.AmazonConnectRequest), not marked as ignorable (18 known properties: \"segments\", \"switchIfPossible\", \"sessionCloseNotifier\", \"requestId\", \"remoteHost\", \"analyticsData\", \"authToken\", \"syncDisplayName\", \"debug\", \"accessToken\", \"language\", \"errorOnSwitch\", \"playerId\", \"doNotCreateNewPlayer\", \"redirectBuilder\", \"sessionId\", \"scriptData\", \"doNotLinkToCurrentPlayer\"])"}

 

So the response does work and I can get errors back, but when I do everything rights (as far as I know) I get the first error. Does anyone know what is happening?

 

Login to post a comment