Eddie
Eddie
I had a look at the object `iana_tz`: ``` {'dst': , 'fromutc': , 'max': datetime.timezone(datetime.timedelta(seconds=86340)), 'min': datetime.timezone(datetime.timedelta(days=-1, seconds=60)), 'tzname': , 'utc': datetime.timezone.utc, 'utcoffset': } (Pdb) type(iana_tz) (Pdb) isinstance(iana_tz, tzinfo) True...
A workaround is setting a timezone. In alpine: apk add tzdata ln -s /usr/share/zoneinfo/Europe/Copenhagen /etc/localtime
>What's self._timezone in this line?? Do you mean the type? ``` (Pdb) type(self._timezone) (Pdb) self._timezone.key *** AttributeError: 'datetime.timezone' object has no attribute 'key' ``` I had not passed any timezone...
Sure. Btw, I meant no timezone configuration was set _on the OS level_. ``` /usr/local/lib/python3.12/site-packages/tzlocal/unix.py:193: UserWarning: Can not find any timezone configuration, defaulting to UTC. warnings.warn("Can not find any timezone...
``` print(type(timezone)) print(hasattr(timezone, "key")) ``` ``` False ```
My pleasure Alpine 3.19 (if you need that for the issue)
I monkey patched the library to support `timeout` and `retry`. ``` def outer_execute_request_direct(self, request): retry = 5 for i in range(retry): try: # response = self.inner_execute_request_direct(request) response = inner_execute_request_direct(self, request)...
I wasn't happy with my results from yesterday so I improved upon the code by adding `requests.Session`. **tl;dr**: sessions seem to perform _much_ better (see analysis at the end). ```...
Another option to get `timeout`s in would be to add it to [RequestOptions](https://github.com/vgrem/Office365-REST-Python-Client/blob/master/office365/runtime/http/request_options.py), if I understand the code correctly. At the moment my code is unusable without timeouts as SPO...
Since "my" issue got closed: ``` immich:~/app# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 8865100f0d2c ghcr.io/immich-app/immich-server:v1.121.0 "tini -- /bin/bash s…" 4 hours ago Up 42 seconds (healthy)...