SteelSeries / gamesense-sdk

472 stars 146 forks source link

InternalServerError when binding full keyboard effect. #113

Closed habetuz closed 3 years ago

habetuz commented 3 years ago

Hello, my goal is to make a full keyboard effect. I followed the Documentation. My binding request looks the following:

{
  "game": "KALE",
  "event": "KEYBOARD_BITMAP",
  "icon_id": 0,
  "min_value": 0,
  "max_value": 1,
  "value_optional": true,
  "handlers": [
    {
      "device_type": "rgb-per-key-zones",
      "mode": "bitmap"
    }
  ]
}

The server responses the following: Status: InternalServerError | Content: {"error": {"message": "Something bad happened"}}

Any help on how to fix this error is welcome!

JHunz commented 3 years ago

I think that should be device-type, not device_type. I'll look into why it's not providing you a more informational error message in this case.

habetuz commented 3 years ago

Oh, what a silly mistake! Nevertheless it's kind of annoying that the engine expects device-type and not device_type, because I write in c# where you are not allowed to have identifiers with a "-". It would be easy to just change all underscores to "-" but unfortunately min_value, max_value, icon_id etc. require underscores.

Nonetheless, thank you for the fast response!