Open fitzgers opened 4 years ago
Hi @fitzgers That's an interesting error, Have you tried the query in prismics graphql browser? [repo-name].prismic.io/graphql
@MarcMcIntosh I can get a pared down version of the query to work in the prismic graphql browser, when using one of the long slugs. When I try the full query (it is quite large) on that slug or any of the others, I get a "Request-URI Too Large" error.
Hi @fitzgers Yes, since our graphql api use get requests we do have a limit to how long a query can be.
What's the full query? we can take a look at trying to optimise it :)
I ran across a strange error where pages with long url slugs would fail at build time with the following error:
The pages failed to build until I trimmed the UIDs used as URL slugs down to something shorter in Prismic and published.
What is most strange to me about this is these are pages that previously had been building successfully, until I added a new field to this page type in Prismic. If I removed any reference to this new field (just a rich text field, nothing fancy) in the graphql query, the pages would build. If I put it back in, they would not, until I trimmed the UID length.