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.

1 Comment

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.



Login to post a comment