Error 500 in the GraphQL response

How to resolve error 500 in the GraphQL response?

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:
  1. Navigate to Stores -> Configuration -> Services -> Magento Web API > GraphQl Input Limits.

  2. Set the Enable Maximum Alias Limit to No


      • Related Articles

      • What Amasty extensions support GraphQL?

        Amasty has introduced additional GraphQL packages for extensions that are GraphQL compatible. These packages are listed in the 'suggest' section of the composer.json file. As a result, they are not automatically installed with the main module. To ...
      • Multiple Coupons | GraphQL methods

        Kindly note that the GraphQL functionality for Multiple Coupons is available as a part of an active product subscription or support subscription Query amGetCouponsByCartId description: get coupons by cart id. Mutations amApplyCouponsToCart ...
      • Promo Banners | GraphQL methods

        Kindly note that the GraphQL functionality for Promo Banners is available as a part of an active product subscription or support subscription Queries amPromoBanners (uid: Product|Category ID; cartId: Cart ID; searchQuery: Search keywords; pageType: ...
      • Composer error: Failed to decode response: Failed to decode zlib stream

        When using composer to download packages, you might encounter an error related to zlib library. A typical error looks like this: This error can occur due to several reasons including: The zlibc library is not installed on your system. There is no ...
      • Composer error: SSL certificate problem: certificate has expired

        When working with composer, you might encounter SSL certificate issues, which can prevent composer from downloading packages. A typical error might look like this: curl error 60 while downloading ...