Traceback (most recent call last):
File "/path/to/script.py", line 33, in <module>
print(wkout_avg(c, int(sys.argv[1])))
~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
File "/path/to/script.py", line 10, in avg
ex_amnt_in_range = len(c.search(start=datetime.now(tzone_edt) - timedelta(days=days_ln), end=datetime.now(tzone_e)))
~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/jyx069vd5id6q5lg53xvnxf7iwr6xbwz-python3-3.13.13-env/lib/python3.13/site-packages/caldav/collection.py", line 1535, in search
return my_searcher.search(
~~~~~~~~~~~~~~~~~~^
self, server_expand, split_expanded, props, xml, post_filter, _hacks
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/nix/store/jyx069vd5id6q5lg53xvnxf7iwr6xbwz-python3-3.13.13-env/lib/python3.13/site-packages/caldav/search.py", line 874, in search
result = cal._request_report_build_resultlist(xm, comp_cls, props=prp)
File "/nix/store/jyx069vd5id6q5lg53xvnxf7iwr6xbwz-python3-3.13.13-env/lib/python3.13/site-packages/caldav/collection.py", line 1341, in _request_report_build_resultlist
response = self._query(xml, 1, "report")
File "/nix/store/jyx069vd5id6q5lg53xvnxf7iwr6xbwz-python3-3.13.13-env/lib/python3.13/site-packages/caldav/davobject.py", line 259, in _query
raise error.exception_by_method[query_method](errmsg(ret))
caldav.lib.error.ReportError: ReportError at '400 Bad Request
<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
<s:exception>Sabre\DAV\Exception\BadRequest</s:exception>
<s:message>You cannot add time-range filters on the VCALENDAR component</s:message>
</d:error>
', reason no reason
I don't know why it's doing this. The script was working perfectly fine for months without this error, and after an update it's not working anymore.
Creating new events still works fine, it's only when I'm trying to read events with this function that it breaks.
I'm on NixOS
I'm getting this error:
I don't know why it's doing this. The script was working perfectly fine for months without this error, and after an update it's not working anymore.
Creating new events still works fine, it's only when I'm trying to read events with this function that it breaks.
I'm on NixOS