Skip to content

Helm Chart cyrillic characters issue #14979

Open

Description

@autowp

After upgrde from Helm Chart from v1.6.171 to v1.9.29 error rendering /login page occured.

Stacktrace:

[08/Jun/2026 14:31:15] ERROR [django.request:253] Internal Server Error: /login
Traceback (most recent call last):
File "/usr/local/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/usr/local/lib/python3.13/site-packages/django/core/handlers/base.py", line 220, in _get_response
response = response.render()
File "/usr/local/lib/python3.13/site-packages/django/template/response.py", line 114, in render
self.content = self.rendered_content
^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/django/template/response.py", line 143, in content
HttpResponse.content.fset(self, value)
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/django/http/response.py", line 413, in content
content = self.make_bytes(value)
File "/usr/local/lib/python3.13/site-packages/django/http/response.py", line 322, in make_bytes
return bytes(value.encode(self.charset))
~~~~~~~~~~~~^^^^^^^^^^^^^^
UnicodeEncodeError: 'utf-8' codec can't encode characters in position 11088-11097: surrogates not allowed
Unhandled exception during social login

Example of configuration

local-values.yaml:

extraConfigs:
  DD_SESSION_COOKIE_SECURE: 'True'
  DD_CSRF_COOKIE_SECURE: 'True'
  DD_SECURE_SSL_REDIRECT: 'True'
  DD_SOCIAL_AUTH_KEYCLOAK_OAUTH2_ENABLED: 'True'
  DD_SOCIAL_AUTH_KEYCLOAK_LOGIN_BUTTON_TEXT: "Войти через Keycloak" # <--- issue here
  DD_SOCIAL_AUTH_KEYCLOAK_PUBLIC_KEY: ""
  DD_SOCIAL_AUTH_KEYCLOAK_KEY: ""
  DD_SOCIAL_AUTH_KEYCLOAK_SECRET: ""
  DD_SOCIAL_AUTH_KEYCLOAK_AUTHORIZATION_URL: https://auth.example.org/auth/realms/users_auth/protocol/openid-connect/auth
  DD_SOCIAL_AUTH_KEYCLOAK_ACCESS_TOKEN_URL: https://auth.example.org/auth/realms/users_auth/protocol/openid-connect/token

Workaround is to replace cyrillic characters with latin ones

extraConfigs:
  ...
  DD_SOCIAL_AUTH_KEYCLOAK_LOGIN_BUTTON_TEXT: "Login with Keycloak"

Activity

  1. changed the title [-]Helm Char cyrillic characters issue[/-] [+]Helm Chart cyrillic characters issue[/+] on Jun 8, 2026
  2. valentijnscholten commented on Jun 12, 2026

    @valentijnscholten
    Member

    According to Claude Code the above means that PYTHONUTF8=1 is needed as en env var in the container/pod.. But this should normally be automatically set since Python 3.7. Can you check what the value is in your pod and/or try setting it:

    Diagnose: kubectl exec <pod> -- python -c "import sys; print(sys.getfilesystemencoding())"

    Fix without rebuilding:

      extraConfigs:
        PYTHONUTF8: '1'
    

    or

    extraConfigs:
      LANG: 'C.UTF-8'
      LC_ALL: 'C.UTF-8'
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions