414 Request-URI Too Large

Since Faust 0.3.0, GraphQL requests are made using the GET HTTP method. Since most hosting providers cache GET requests, this will help keep your WordPress instance below capacity. However, there are some instances where you may want Apollo to use the POST HTTP method for GraphQL requests:

  • You are receiving stale data

  • Your GraphQL queries are too long to be stringified into a URL (this length is determined by your hosting provider)

If you want Faust to use POST requests instead of GET requests, you can set the following property in your .env:

NEXT_PUBLIC_SITE_API_METHOD = POST

This means you need to change this environment variable value in the environment variable settings section of your hosting settings.

Last updated