[GH-ISSUE #6] CrashLoopBackOff when CACHE_EXPIRATION is configured. #1

Closed
opened 2026-03-02 03:44:32 +03:00 by kerem · 1 comment
Owner

Originally created by @kishorviswanathan on GitHub (Sep 15, 2020).
Original GitHub issue: https://github.com/dignajar/another-ldap-auth/issues/6

I tried to configure CACHE_EXPIRATION via the environment in the latest docker image and the pod was crash looping.

Traceback (most recent call last):
  File "/opt/main.py", line 40, in <module>
    cache = Cache(CACHE_EXPIRATION)
  File "/opt/cache.py", line 8, in __init__
    self.validUntil = datetime.now() + timedelta(minutes=self.expirationMinutes)
TypeError: unsupported type for timedelta minutes component: str

This is the error.

I guess the problem is with the type conversion. You might want to convert the str value to an int

Originally created by @kishorviswanathan on GitHub (Sep 15, 2020). Original GitHub issue: https://github.com/dignajar/another-ldap-auth/issues/6 I tried to configure ``CACHE_EXPIRATION`` via the environment in the latest docker image and the pod was crash looping. ``` Traceback (most recent call last): File "/opt/main.py", line 40, in <module> cache = Cache(CACHE_EXPIRATION) File "/opt/cache.py", line 8, in __init__ self.validUntil = datetime.now() + timedelta(minutes=self.expirationMinutes) TypeError: unsupported type for timedelta minutes component: str ``` This is the error. I guess the problem is with the type conversion. You might want to convert the `str` value to an `int`
kerem closed this issue 2026-03-02 03:44:32 +03:00
Author
Owner

@dignajar commented on GitHub (Sep 16, 2020):

Hi, fixed github.com/dignajar/another-ldap-auth@2d6720458c
Thank you for report the bug.

<!-- gh-comment-id:693213671 --> @dignajar commented on GitHub (Sep 16, 2020): Hi, fixed https://github.com/dignajar/another-ldap-auth/commit/2d6720458c44a14f38bf90d94d7768bf9f26d650 Thank you for report the bug.
Sign in to join this conversation.
No labels
bug
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/another-ldap-auth#1
No description provided.