Closed Durss closed 1 year ago
If that can be of any interest, i no longer have a 500 when calling the GET users/blocks endpoint.
I am no longer getting this either, seems like it's fixed
I made some tests trying to block wrong user IDs, the PUT service returns a 204 like everything went OK which doesn't feel right, but the GET endpoint isn't corrupted anymore after that.
Documentation does not specify what the HTTPS status response should be if the target_user_id isn't valid so technically, even though I believe it would make sense to return a 400, it works the expected way.
Brief description Basically the same as what's described on this previously fixed issue, but it's crashing again https://github.com/twitchdev/issues/issues/639
How to reproduce Call the endpoint
helix/users/blocks
in PUT withtarget_user_id=blablabla
. (i get a 200 as if everything went fine) Call the endpointhelix/users/blocks
in GET, you'll get a 500. To make the service back we need to call the endpoint with DELETE method and the exact same wrongtarget_user_id
provided before. Only then the GET endpoint will work again. If, like I, you forgot which wrong data you sent before, you basically cannot get the service working back.Query example that corrupts the service
Expected behavior Calling the endpoint with a wrong user ID should yield an error.
Screenshots
Additional context or questions