<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Receiving 502 errors when using Cloudflare in front of FusionAuth]]></title><description><![CDATA[<p dir="auto">We were using a FusionAuth cloud deployment directly but now want to use Cloudflare in front of it.</p>
<p dir="auto">We are now seeing intermittent, infrequent 502 errors.</p>
<p dir="auto">We see errors like this in the logs</p>
<pre><code>2025-06-24 14:05:09.345 PM ERROR io.fusionauth.http.server.HTTPServerThread - An exception was thrown during processing
java.lang.IllegalArgumentException: Not a valid Unicode code point: 0xFFFFFFC3 
</code></pre>
<p dir="auto">How can we resolve this?</p>
]]></description><link>https://fusionauth.io/community/forum/topic/2932/receiving-502-errors-when-using-cloudflare-in-front-of-fusionauth</link><generator>RSS for Node</generator><lastBuildDate>Wed, 12 Aug 2026 05:27:35 GMT</lastBuildDate><atom:link href="https://fusionauth.io/community/forum/topic/2932.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 26 Jun 2025 23:55:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Receiving 502 errors when using Cloudflare in front of FusionAuth on Fri, 27 Jun 2025 02:26:42 GMT]]></title><description><![CDATA[<p dir="auto">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 <code>cf-region: São Paulo</code>) which triggers this issue.</p>
<p dir="auto">This is <a href="https://github.com/FusionAuth/java-http/issues/25" rel="nofollow ugc">a java-http bug that was fixed in 2024</a>, and released in <a href="https://fusionauth.io/docs/release-notes/#version-1-51-2" rel="nofollow ugc">FusionAuth version 1.51.2</a>.</p>
<p dir="auto">So, two options:</p>
<ul>
<li>upgrade to a version of FusionAuth 1.51.2 or newer. This is the recommended approach, but may require some work.</li>
<li>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.</li>
</ul>
]]></description><link>https://fusionauth.io/community/forum/post/8067</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/8067</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Fri, 27 Jun 2025 02:26:42 GMT</pubDate></item></channel></rss>