Closed platinummonkey closed 2 years ago
Hi Cody. Thanks for the bug report. Unfortunately this client does not report errors as well as it should. We are in the process of fixing that. The json error you are seeing is a red herring. I suspect that the true error is that the http request's url is too long.
We encode the information for which series to delete in the querystring of the url. 5000 series keys will create a url ~10kb (depending on the size of the keys). We can investigate updating the api to pass this information in the body. In the meantime, you have a couple of options for workarounds:
I realize that these options aren't ideal. I apologize for that. I'll queue up the change to allow the series key list in the body of the request.
Sending 5000 keys to delete with the delete_series method results in the following:
Using the latest version in PyPi.