Describe the issue:
We notice that we receive a 499 status when we execute a query.
{
"name":"ApiError",
"response":{
"status":499,
"statusText":"Client Closed Request",
"headers":{
},
"body":""
},
"query":"query disclaimerQuery($lang: SiteLocale, $slug: String) {\n product(locale: $lang, filter: {slug: {eq: $slug}}) {\n disclaimer {\n ...ProductDisclaimer\n }\n }\n}\n\nfragment ProductDisclaimer on ProductDisclaimerRecord {\n title\n body {\n value\n }\n link {\n ...ExternalLinkBlock\n }\n color\n}\n\nfragment ExternalLinkBlock on ExternalLinkRecord {\n __typename\n label\n url\n openInNewWindow\n}",
"options":{
"graphqlEndpointUrl":"XXXXXXXXXX",
"variables":{
"lang":"nl_BE",
"slug":"delabie-handgreep-basic-135-32-met-3-bevestigingspunten-rvs"
},
"excludeInvalid":true,
"token":"XXXXXXXXXX",
"requestInitOptions":{
"cache":"no-cache"
}
}
}
const productDisclaimerQuery = graphql(
`
query disclaimerQuery($lang: SiteLocale, $slug: String) {
product(locale: $lang, filter: { slug: { eq: $slug } }) {
disclaimer {
...ProductDisclaimer
}
}
}
`,
[ProductDisclaimer],
);
We think that when the slug is too long we receive this error. But this is just a guess.
(Recommended) What’s the URL of the record or model in question?
We don’t have a specific record because it’s a where query so record is returned based on slug. The model is product_disclaimer