In some cases, error 500 could appear in the search results page with the following error in the console:
query {config: storeConfig {\n isProductReviewsBlockEnabled: amasty_xsearch_product_reviews\n isProductAddToCartBlockEnabled: amasty_xsearch_product_add_to_cart\n isRedirectToSingleProductEnabled: amasty_xsearch_product_redirect_single_product\n isFullScreenMode: amasty_xsearch_general_full_screen\n isGridView: amasty_xsearch_product_popup_display\n isShowSku: amasty_xsearch_product_show_sku\n shortDescriptionLength: amasty_xsearch_product_desc_length\n\n customMediaUrl: secure_base_media_url\n\n amasty_xsearch_products_title: amasty_xsearch_product_title\n amasty_xsearch_popularSearches_title: amasty_xsearch_popular_searches_title\n amasty_xsearch_browsingHistory_title: amasty_xsearch_browsing_history_title\n amasty_xsearch_recentSearches_title: amasty_xsearch_recent_searches_title\n amasty_xsearch_recentlyViewed_title: amasty_xsearch_recently_viewed_title\n amasty_xsearch_landingPage_title: amasty_xsearch_landing_page_title\n amasty_xsearch_bestsellers_position\n\n amasty_xsearch_faq_title\n amasty_xsearch_brand_title\n amasty_xsearch_blog_title\n
The error in the GraphQL response might occur due to the limitations configured in the Magento settings. To resolve the issue, the following steps are to be followed:
- Navigate to Stores -> Configuration -> Services -> Magento Web API > GraphQl Input Limits.
- Set the Enable Maximum Alias Limit to No.