scanner / as_email_service

A Django app and smtp relay service for working with 3rd party email services and asimap
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Every now and when building the docker image "collectstatic" fails with `RecursionError: maximum recursion depth exceeded` #53

Closed scanner closed 12 months ago

scanner commented 12 months ago
File "/venv/lib/python3.11/site-packages/environ/environ.py", line 361, in get_value
    logger.debug(
    File "/usr/local/lib/python3.11/logging/__init__.py", line 1476, in debug
    if self.isEnabledFor(DEBUG):
       ^^^^^^^^^^^^^^^^^^^^^^^^
0.856 RecursionError: maximum recursion depth exceeded

This was quite puzzling but I eventually figured that it is because sometimes the random string created for the django secret in these cases started with "$" .. and this causes django-environ to think it is trying to resolve a proxy variable (ie: "$FOO == the value of FOO, not the string FOO").