Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

block_community does not work currently #17

Closed
AndrewFlan opened this issue Aug 13, 2023 · 2 comments
Closed

block_community does not work currently #17

AndrewFlan opened this issue Aug 13, 2023 · 2 comments

Comments

@AndrewFlan
Copy link

I made a script to block communities that was working fine a while ago, but now it seems that the block_community request returns a status code of 400 with a reason of Bad Request. I've tried with various instances and what not, but all seem to have the same outcome.

@tjkessler tjkessler mentioned this issue Aug 15, 2023
@tjkessler
Copy link
Collaborator

Hi @AndrewFlan,

This issue should be fixed as of PR #18, see the PR for details. TL;DR, it looks like some API functions accept boolean values converted to strings, and others accept actual boolean values. Very strange.

Version 0.3.5 has the updates.

Best,
Travis

@tjkessler
Copy link
Collaborator

tjkessler commented Aug 15, 2023

Thinking out loud: going forward I'd like to implement some unit tests for API responses, nothing too intensive, just to make sure 200 responses are returned.

That should help us avoid bugs like this in the future!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants