twitchdev / issues

Issue tracker for third party developers.
Apache License 2.0
73 stars 6 forks source link

Two error messages in a Poll Create with one option #488

Closed BarryCarlyon closed 1 year ago

BarryCarlyon commented 3 years ago

Brief description

A call to create a Poll with one option returns two concantentated JSON errors Same problem if you submit 6 (or more) options

How to reproduce

This call to create a Poll

POST https://api.twitch.tv/helix/polls

{
    "broadcaster_id": "15185913",
    "title": "Test Poll",
    "duration": 15,
    "choices": [
        {
            "title": "bees"
        }
    ]
}

Results in

{
  "error": "Bad Request",
  "status": 400,
  "message": "number of choices should be 2 to 5"
}{
  "error": "Bad Request",
  "status": 400,
  "message": "choices must have a length greater than or equal to 2"
}

Expected behavior

One error message

Screenshots

image

Xemdo commented 1 year ago

No longer occurring. Closed