twitchdev / issues

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

API Endpoint /helix/streams/followed?user_id=<id> returns status code 500 when the user does not follow anyone #721

Closed diogoizele closed 1 year ago

diogoizele commented 1 year ago

Brief description

When calling the endpoint /helix/streams/followed?user_id=<id> using the account id of a user who does not follow any channel, the api returns 500, this case is not handled

How to reproduce

Call the api /helix/streams/followed?user_id= for a user who doesn't follow any channels

Or simply run this on bash:

https -A bearer -a <your access_token> https://api.twitch.tv/helix/streams/followed\?user_id\=<your id account> \
Client-Id:<your client id>

Expected behavior

It is expected that even if the user is not following any channels, the API will handle this case and return an appropriate message.

Screenshots

image
Xemdo commented 1 year ago

This should be fixed now. Closing.