-
Notifications
You must be signed in to change notification settings - Fork 541
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
DeleteFilters not working #903
Comments
can you please show the exact Go code you are using here? the values for filter IDs should be a slice of values, not comma separated values. |
oh, do you mean the API request itself is joining them and you're getting this error? if so I can chat to the service team and see when this changed as it should still be supported like this. |
@jacobbednarz yes indeed. For eg doing something like
would produce the error. The problem is because the go lib calls:
While the API seems to expect soething like
|
Confirmation
cloudflare-go version
master
Go environment
Expected output
DeleteFilters should delete filters when there are multiple of them provided
Actual output
Code demonstrating the issue
cloudflare-go/filter.go
Line 199 in dcc2147
However the docs https://developers.cloudflare.com/firewall/api/cf-filters/delete/#delete-multiple-filters say to provide each filter id as value to
id
parameter separately.Steps to reproduce
Call `DeleteFilters1 with more than one filters.
References
crowdsecurity/cs-cloudflare-bouncer#96
The text was updated successfully, but these errors were encountered: