question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Request-URI Too Long

See original GitHub issue

My 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:

image

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:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
Glavin001commented, Nov 21, 2017

You understand my situation correctly.

I will need time to investigate your proposed workaround. Thank you for your support!

2reactions
asiandrummercommented, Nov 20, 2017

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found