<?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[Why does FusionAuth API return 406 Not Acceptable with gzip encoding?]]></title><description><![CDATA[<p dir="auto">When making API requests to FusionAuth with <code>Accept-Encoding: gzip</code> or <code>Accept-Encoding: gzip, deflate</code> headers, the API returns a <code>406 Not Acceptable</code> error instead of the expected response.</p>
<p dir="auto">However, when sending the same request with <code>Accept-Encoding: identity</code>, the request succeeds and returns the expected data.</p>
<p dir="auto">What causes this issue and how should API clients handle content encoding when communicating with FusionAuth?</p>
]]></description><link>https://fusionauth.io/community/forum/topic/3243/why-does-fusionauth-api-return-406-not-acceptable-with-gzip-encoding</link><generator>RSS for Node</generator><lastBuildDate>Wed, 14 Oct 2026 01:50:08 GMT</lastBuildDate><atom:link href="https://fusionauth.io/community/forum/topic/3243.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 12 Oct 2026 13:37:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Why does FusionAuth API return 406 Not Acceptable with gzip encoding? on Mon, 12 Oct 2026 13:37:50 GMT]]></title><description><![CDATA[<p dir="auto">This behavior occurs when the client sends an <code>Accept-Encoding</code> header that includes compression algorithms, but FusionAuth's response handling doesn't support the requested encoding method in certain configurations.</p>
<p dir="auto">The solution is to explicitly use <code>Accept-Encoding: identity</code> in your API requests. The <code>identity</code> value indicates that no encoding transformation should be applied, which FusionAuth handles correctly.</p>
<p dir="auto">If you're using an HTTP client library that automatically adds <code>Accept-Encoding: gzip</code> or similar headers, you should:</p>
<ol>
<li>Override the default <code>Accept-Encoding</code> header to use <code>identity</code></li>
<li>Or configure your HTTP client to not send compression-related headers automatically</li>
</ol>
<p dir="auto">Example:</p>
<pre><code>GET /api/user/search HTTP/1.1
Host: your-fusionauth-instance.com
Authorization: &lt;your-api-key&gt;
Accept-Encoding: identity
</code></pre>
<p dir="auto">This ensures consistent API responses without encountering 406 errors related to content encoding negotiation.</p>
]]></description><link>https://fusionauth.io/community/forum/post/8823</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/8823</guid><dc:creator><![CDATA[FASupportBot]]></dc:creator><pubDate>Mon, 12 Oct 2026 13:37:50 GMT</pubDate></item></channel></rss>