#2472·hanko

500 on login when account is not registered

Author: Harm-NullixCreated Mar 4, 2026Updated Mar 6, 2026
Labelsbug

Checklist

  • I could not find a solution in the existing issues or docs.
  • I agree to follow this project's Code of Conduct.

Describe the bug

When this toggle is off:

Image

We used to get a nice error message that just states "account not found" or something generic when we have this toggle off, now we get an 500 error screen

Reproducing the bug

Set the privacy toggle to "Off" which means do not expose detail error message.

Try a login screen with an unkonwn email, You will get this screen (in dutch):

Image

Logs

bash
curl 'https://auth-dev.pgbeetje.nl/login?action=continue_with_login_identifier%406096f208-70e8-4c24-b705-e7a8209b7c43' \
  -X POST \
  -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:148.0) Gecko/20100101 Firefox/148.0' \
  -H 'Accept: application/json' \
  -H 'Accept-Language: nl,en-US;q=0.9,en;q=0.8' \
  -H 'Accept-Encoding: gzip, deflate, br, zstd' \
  -H 'Content-Type: application/json' \
  -H 'X-Language: nl' \
  -H 'Origin: http://localhost:3027' \
  -H 'Sec-Fetch-Storage-Access: none' \
  -H 'DNT: 1' \
  -H 'Sec-GPC: 1' \
  -H 'Sec-Fetch-Dest: empty' \
  -H 'Sec-Fetch-Mode: cors' \
  -H 'Sec-Fetch-Site: cross-site' \
  -H 'Connection: keep-alive' \
  --data-raw '{"input_data":{"identifier":"[email protected]"},"csrf_token":"Htx0JLUHzAbtJJSqssW3nvLirsHwcsZ1"}'

Response:
{"name":"error","status":500,"payload":{},"csrf_token":"tCErDpUm78l4tZUm0SJnWtpWSrMeAoSc","actions":{},"error":{"code":"flow_discontinuity_error","message":"The flow can't be continued."},"links":null}

Configuration

yaml

Hanko Version

2.5.0

OS Hanko Backend

None

OS Version Hanko Backend

No response

OS

macOS

OS Version

MAcOS 26.3 (25D125)

Browser Version

Firefox 148.0 (aarch64)

Environment

None

Additional Context

I am just using Hanko Cloud. You may check our config in Hanko:

organizations/5671afbf-f9ae-46a2-a6be-2b80dd321bb1/projects/2aca895a-d2a5-4389-8a18-423642acdab9