Sign In Register

How can we help you today?

Start a new topic

"playerId" is not allowed as an event attribute short code!

I have an event having a string attribute with short code as "playerId", default value as empty, type as "Used in Script".

However in Test Harness, whatever value I passed to the event, it return error as "playerId" is required:

  "@class": ".LogEventResponse",
  "error": {
    "playerId": "REQUIRED"


I thought there's something wrong with my code and took me a while to debug... I guess "playerId" is used as system key and it get overridden. If that's the case it will be helpful to point it out in document.

Hi Richard 

"playerId" as an event attribute will cause an error as this is a protected word.

"player_id" or"userId" are all okay to use.



Good to know... I get 'REQUIRED' and 'NOT_AUTHORIZED' errors in any of my custom events where playerId was used and I can't figure out what the hell is going on...  :D
Why so obvious restrictions are not documented or even better handled in configurator? ;)


Login to post a comment