Running :GetBanHistoryAsync() always errors with HTTP 403 in studio testing

Attempting to run :GetBanHistoryAsync() with any user ID in studio testing will always return an HTTP 403 error, even with the “Allow HTTP requests” option turned on.

image

Place1.rbxl (52.3 KB)

Others also experienced this issue:

Expected behavior

I expect :GetBanHistoryAsync(), when run in a published experience with studio HTTP requests enabled, to either return a BanHistoryPages instance or a clearer error.

1 Like

Similar to BanAsync and UnbanAsync, this API will also only succeed on production game servers. I apologize that this is not communicated at all in the documentation or in code. I will update them accordingly.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.