Hello!
I have issues with the block/unblock endpoints not working or very randomly.
I’m sending proper info, I get proper 204 result, but the user isn’t blocked or unblocked.
Even worse, after blocking a user from the API, the endpoint to get all the blocked users now returns a 500.
I’ve managed to get it working back after unblocking the user from the API andpoint only. User was not listed here Twitch and using /unblock command on the the twitch chat changed nothing.
I made other block attempts after that and no the endpoint is stuck on 500. I gues i’d have to remember which users I tried to block in order to have a chance of fixing this.
The access_token is valid, every other endpoints are working properly.
I requested the proper scopes:
user:manage:blocked_users
user:read:blocked_users
It shouldn’t be a rate limit issue, i would get a 429 status code.
I tried creating a new Twitch application in case the one I used got restricted or something, but I get the exact same behavior.
TLDR
: Basically, the endpoints do not work and i’m fairly convince this is an issue on Twitch’s side but I can’t tell for sure either…
Bellow is how i call the endpoints.
Block a user:
URL:
https://api.twitch.tv/helix/users/blocks?target_user_id=USER_ID&reason=REASON
Headers:
method: PUT
authorization: Bearer XXX
client-id: YYY
content-type: application/json
Unblock a user:
URL:
https://api.twitch.tv/helix/users/blocks?target_user_id=USER_ID
Headers:
method: DELETE
authorization: Bearer XXX
client-id: YYY
content-type: application/json
Get all blocked users
URL:
https://api.twitch.tv/helix/users/blocks?broadcaster_id=MY_USER_ID&first=100
Headers:
method: GET
authorization: Bearer XXX
client-id: YYY
content-type: application/json
Any idea what could be going on?