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"
After upgrde from Helm Chart from v1.6.171 to v1.9.29 error rendering
/loginpage occured.Stacktrace:
Example of configuration
local-values.yaml:
Workaround is to replace cyrillic characters with latin ones