Request-URI Too Long
See original GitHub issueMy team is using GraphiQL and loving it! Thank you for such an awesome tool.
Recently we have been receiving the following error on our longer queries:
Request-URI Too Long
The requested URL's length exceeds the capacity limit for this server.
I narrowed it down to Apache rejecting the URL:
However, our Infrastructure team will not increase the character count max for Apache stating:
There is a 2k character count max for most browsers, servers, etc. You have a URL with 12859 characters.
Is there anything we can do to reduce the URL character count? Thanks in advance!
Issue Analytics
- State:
- Created 6 years ago
- Reactions:5
- Comments:10 (5 by maintainers)
Top Results From Across the Web
How do I resolve a HTTP 414 "Request URI too long" error?
Under Apache, the limit is a configurable value, LimitRequestLine . Change this value to something larger than its default of 8190 if you...
Read more >414 URI Too Long - HTTP - MDN Web Docs
The HTTP 414 URI Too Long response status code indicates that the URI requested by the client is longer than the server is...
Read more >How to Fix the 414 Request-URI Too Large Error - YouTube
Ever seen the "414 Request-URI Too Large " error pop up? Tackle it with no fear thanks to this guide Subscribe: ...
Read more >How To Fix 414 Request URI Too Large in Apache - Ubiq BI
How To Fix 414 Request URI Too Large in Apache · 1. Open Apache Configuration File · 2. Increase URI limit · 3....
Read more >414 Request-URI Too Long - HTTP Status Code Glossary
The server is refusing to service the request because the request-target is longer than the server is willing to interpret. ... A 414...
Read more >Top Related Medium Post
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You understand my situation correctly.
I will need time to investigate your proposed workaround. Thank you for your support!
@michaelcurry Hi there! Basically you would map an unique key to a query string (and probably also variables) and store the combination in the server. There isn’t an official documentation as far as I know about this topic since it’s one of the advanced topics, but I’ve found a helpful guide to get you started - https://dev-blog.apollodata.com/persisted-graphql-queries-with-apollo-client-119fd7e6bba5
The above link is closely tied with JavaScript/Apollo tools, but it’d be useful to give you a basic understanding of how a persisted query would be created. Let me know if you have other questions about it please.