This is due to non-ASCII characters in headers causing an issue in the FusionAuth parsing code. Cloudflare sends headers with non-ASCII characters (such as cf-region: São Paulo
) which triggers this issue.
This is a java-http bug that was fixed in 2024, and released in FusionAuth version 1.51.2.
So, two options:
- upgrade to a version of FusionAuth 1.51.2 or newer. This is the recommended approach, but may require some work.
- as an interim workaround, you can disable the "Add visitor location headers" option from your CloudFlare console. This should not have any negative impact, since we do not inspect those headers.