Internal Server Error when logging in via Authentik

My version of HedgeDoc is: 1.9.6

What I log in with authtnik first goes to link https://hedgedoc.domain.com/if/flow/default-provider-authorization-explicit-consent/?response_type=code&redirect_uri=https%3A%2F%2Fhedgedoc.crx-int.com%2Fauth%2Foauth2%2Fcallback&scope=openid+email+profile&state=J9cAmTzkpqS6SbALLahkw3Zg&client_id=29a8feafc18c782db7b8ee7d84de5609f5fa5383

then
https://hedgedoc.domain.com/auth/oauth2/callback?code=31dd0bf949d94f61b0f6df10d04af4e7&state=J9cAmTzkpqS6SbALLahkw3Zg

and show up error “Internal Server Error”

Any idea?

Tnx