A 406 Not Acceptable error on Nginx for Giphy means the server can't provide the requested content (like login/upload) in a format your browser accepts, often due to mismatched Accept headers, incorrect URLs, or security rules blocking the request. Solutions include clearing browser cookies, checking for typos in Giphy's URL (e.g., giphy.com/upload), inspecting network requests in developer tools for header issues, or checking for browser extensions interfering with Giphy's content negotiation.
Common Causes
Content Negotiation Mismatch: Your browser asks for a specific format (e.g., JSON, MP4), but the Giphy server can't provide it.
Incorrect URL: A slight typo or appending extra parameters (like ?json) to the URL can trigger this, as seen when trying to access Giphy's login/upload features.
Security Rules: Nginx or a security module (like mod_security) might block the request if it seems suspicious or violates a policy.
Browser Issues: Corrupted cookies, cache, or conflicting extensions can send incorrect headers.
How to Fix It (For Users)
Clear Cookies & Cache: For Giphy, clear your browser's cookies and site data.
To clear your browser's cache and cookies, use the keyboard shortcut Ctrl+Shift+Delete
Check the URL: Double-check that you're visiting giphy.com/login or giphy.com/upload without extra characters.
Use Developer Tools:
Open Chrome DevTools (F12 or Ctrl+Shift+I).
Go to the Network tab and clear it.
Try accessing Giphy's features again (e.g., click "Upload").
Look at the headers for the failing request (often the first one) in the Headers tab for anything unusual.
Try Incognito Mode/Different Browser: This helps rule out extensions or corrupted data.
What Website Owners See
(If it's Your Site Using Giphy)
Review Nginx Config: Look for proxy_set_header directives or security rules that might be stripping or altering Accept headers.
Check Server Logs: Nginx error logs (/var/log/nginx/error.log) can reveal specific security blocks or misconfigurations related to the request.
406 error started at : " https://giphy.com/ "
chrome://settings/content/siteDetails?site=https%3A%2F%2Fgiphy.com
chrome://settings/clearBrowserData?search=http
CLEAR BROWSER DATA ..
chrome://settings/security?search=http
SAFE BROWSING / STOP SAFE BROWSING
NO SECURITY
? How to use GIPHY to sent GIF animations on webwhatsapp