Skip to content

POST /graphql: «Max query complexity should be 300 but got 523» #65

@dmitrii-fediuk

Description

@dmitrii-fediuk
{
    "mage2pro/core": "11.3.0",
    "Magento": "2.4.6-p4",
    "PHP": "8.2.16",
    "URL": "https://www.27estore.com/graphql",
    "Time": "2024-07-24 03:40:42",
    "Referer": "https://www.27estore.com/",
    "IP Address": "91.92.247.190",
    "Request Method": "POST",
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36",
    "php://input": "{\"query\":\"mutation createCustomerV2($createCustomerV2input : CustomerCreateInput! $reviewscurrentPage : Int $reviewspageSize : Int $orderscurrentPage : Int $ordersfilter : CustomerOrdersFilterInput $orderspageSize : Int $ordersscope : ScopeTypeEnum $orderssort : CustomerOrderSortInput $wishlistscurrentPage : Int $wishlistspageSize : Int $items_v2currentPage : Int $items_v2pageSize : Int $wishlist_v2id : ID! ) { createCustomerV2(input: $createCustomerV2input ) { customer { addresses { city company country_code default_billing default_shipping extension_attributes { attribute_code value  } fax firstname id lastname middlename postcode prefix region { region region_code region_id  } region_id street suffix telephone vat_id  } allow_remote_shopping_assistance compare_list { attributes { code label  } items { attributes { code value  } product { canonical_url categories { available_sort_by canonical_url children_count css_desktop css_desktop_large css_global css_phone css_phone_small css_tablet css_tablet_small custom_js custom_layout_update_file default_sort_by description display_mode filter_price_range hide_cart_button image include_in_menu is_anchor landing_page level meigee_cat_bg meigee_cat_bg_retina meigee_cat_block_bottom meigee_cat_block_right meigee_cat_block_top meigee_cat_bold_link meigee_cat_customlink meigee_cat_custom_link meigee_cat_custom_link_target meigee_cat_labeltext meigee_cat_max_quantity meigee_cat_menu_width meigee_cat_subcontent meigee_menu_catimg meta_description meta_keywords meta_title name path path_in_store position product_count show_info_button thumbnail title_rewrite uid url_key url_path url_suffix weltpixel_category_url weltpixel_category_url_newtab weltpixel_exclude_from_sitemap weltpixel_hide_breadcrumbs weltpixel_hide_title weltpixel_mm_bottom_block weltpixel_mm_bottom_block_cms weltpixel_mm_bottom_block_type weltpixel_mm_columns_number weltpixel_mm_column_width weltpixel_mm_display_mode weltpixel_mm_dynamic_sc_flag weltpixel_mm_dynamic_sc_opts weltpixel_mm_font_color weltpixel_mm_font_hover_color weltpixel_mm_image weltpixel_mm_image_alt weltpixel_mm_image_enable weltpixel_mm_image_height weltpixel_mm_image_name_align weltpixel_mm_image_position weltpixel_mm_image_radius weltpixel_mm_image_width weltpixel_mm_label_background_color weltpixel_mm_label_font_color weltpixel_mm_label_position weltpixel_mm_label_text weltpixel_mm_left_block weltpixel_mm_left_block_cms weltpixel_mm_left_block_type weltpixel_mm_mob_hide_allcat weltpixel_mm_right_block weltpixel_mm_right_block_cms weltpixel_mm_right_block_type weltpixel_mm_show_arrows weltpixel_mm_top_block weltpixel_mm_top_block_cms weltpixel_mm_top_block_type weltpixel_sc_columns weltpixel_sc_hide weltpixel_sc_image weltpixel_sc_layout weltpixel_sc_title_position wp_canonical_url wp_enable_canonical_url wp_enable_index_follow wp_follow_value wp_index_value wp_use_canonical_url_in_sitemap  } country_of_manufacture description { html  } gift_message_available image { disabled label position url  } media_gallery { disabled label position url  } meta_description meta_keyword meta_title name new_from_date new_to_date only_x_left_in_stock options_container price_tiers { quantity  } product_links { linked_product_sku linked_product_type link_type position sku  } rating_summary review_count short_description { html  } sku small_image { disabled label position url  } special_price special_to_date stock_status swatch_image thumbnail { disabled label position url  } uid url_key url_rewrites { url  } url_suffix  } uid  } item_count uid  } created_at date_of_birth default_billing default_shipping email firstname gender is_subscribed lastname middlename orders( currentPage: $orderscurrentPage filter: $ordersfilter pageSize: $orderspageSize scope: $ordersscope sort: $orderssort )  { items { billing_address { city company country_code fax firstname lastname middlename postcode prefix region region_id street suffix telephone vat_id  } carrier comments { message timestamp  } credit_memos { comments { message timestamp  } id items { id product_name product_sku quantity_refunded  } number  } gift_message { from message to  } id invoices { comments { message timestamp  } id items { id product_name product_sku quantity_invoiced  } number  } items { discounts { label  } entered_options { label value  } gift_message { from message to  } id product_name product_sale_price { value  } product_sku product_type product_url_key quantity_canceled quantity_invoiced quantity_ordered quantity_refunded quantity_returned quantity_shipped selected_options { label value  } status  } number order_date payment_methods { additional_data { name value  } name type  } shipments { comments { message timestamp  } id items { id product_name product_sku quantity_shipped  } number tracking { carrier number title  }  } shipping_address { city company country_code fax firstname lastname middlename postcode prefix region region_id street suffix telephone vat_id  } shipping_method status total { base_grand_total { value  } discounts { label  } grand_total { value  } subtotal { value  } taxes { rate title  } total_shipping { value  } total_tax { value  }  }  } page_info { current_page page_size total_pages  } total_count  } prefix reviews( currentPage: $reviewscurrentPage pageSize: $reviewspageSize )  { items { average_rating created_at nickname product { canonical_url categories { available_sort_by canonical_url children_count css_desktop css_desktop_large css_global css_phone css_phone_small css_tablet css_tablet_small custom_js custom_layout_update_file default_sort_by description display_mode filter_price_range hide_cart_button image include_in_menu is_anchor landing_page level meigee_cat_bg meigee_cat_bg_retina meigee_cat_block_bottom meigee_cat_block_right meigee_cat_block_top meigee_cat_bold_link meigee_cat_customlink meigee_cat_custom_link meigee_cat_custom_link_target meigee_cat_labeltext meigee_cat_max_quantity meigee_cat_menu_width meigee_cat_subcontent meigee_menu_catimg meta_description meta_keywords meta_title name path path_in_store position product_count show_info_button thumbnail title_rewrite uid url_key url_path url_suffix weltpixel_category_url weltpixel_category_url_newtab weltpixel_exclude_from_sitemap weltpixel_hide_breadcrumbs weltpixel_hide_title weltpixel_mm_bottom_block weltpixel_mm_bottom_block_cms weltpixel_mm_bottom_block_type weltpixel_mm_columns_number weltpixel_mm_column_width weltpixel_mm_display_mode weltpixel_mm_dynamic_sc_flag weltpixel_mm_dynamic_sc_opts weltpixel_mm_font_color weltpixel_mm_font_hover_color weltpixel_mm_image weltpixel_mm_image_alt weltpixel_mm_image_enable weltpixel_mm_image_height weltpixel_mm_image_name_align weltpixel_mm_image_position weltpixel_mm_image_radius weltpixel_mm_image_width weltpixel_mm_label_background_color weltpixel_mm_label_font_color weltpixel_mm_label_position weltpixel_mm_label_text weltpixel_mm_left_block weltpixel_mm_left_block_cms weltpixel_mm_left_block_type weltpixel_mm_mob_hide_allcat weltpixel_mm_right_block weltpixel_mm_right_block_cms weltpixel_mm_right_block_type weltpixel_mm_show_arrows weltpixel_mm_top_block weltpixel_mm_top_block_cms weltpixel_mm_top_block_type weltpixel_sc_columns weltpixel_sc_hide weltpixel_sc_image weltpixel_sc_layout weltpixel_sc_title_position wp_canonical_url wp_enable_canonical_url wp_enable_index_follow wp_follow_value wp_index_value wp_use_canonical_url_in_sitemap  } country_of_manufacture description { html  } gift_message_available image { disabled label position url  } media_gallery { disabled label position url  } meta_description meta_keyword meta_title name new_from_date new_to_date only_x_left_in_stock options_container price_tiers { quantity  } product_links { linked_product_sku linked_product_type link_type position sku  } rating_summary review_count short_description { html  } sku small_image { disabled label position url  } special_price special_to_date stock_status swatch_image thumbnail { disabled label position url  } uid url_key url_rewrites { url  } url_suffix  } ratings_breakdown { name value  } summary text  } page_info { current_page page_size total_pages  }  } suffix taxvat wishlists( currentPage: $wishlistscurrentPage pageSize: $wishlistspageSize )  { id items_count sharing_code updated_at  }  }  }  } \",\"variables\":{\"createCustomerV2input\":{\"allow_remote_shopping_assistance\":true,\"date_of_birth\":\"01/01/1967\",\"dob\":\"1967/1/1\",\"email\":\"sample@email.tst\",\"firstname\":\"fnfOzvSR\",\"gender\":1,\"is_subscribed\":true,\"lastname\":\"fnfOzvSR\",\"middlename\":\"fnfOzvSR\",\"password\":\"g00dPa$$w0rD\",\"prefix\":\"317\",\"suffix\":\"testString\",\"taxvat\":\"testString\"},\"items_v2currentPage\":1,\"items_v2pageSize\":1,\"orderscurrentPage\":1,\"ordersfilter\":{\"number\":{\"eq\":\"testString\",\"in\":\"\",\"match\":\"-1' OR 2+817-817-1=0+0+0+1 -- \"}},\"orderspageSize\":\"1\",\"ordersscope\":\"1\",\"orderssort\":{\"sort_direction\":\"1\",\"sort_field\":\"1\"},\"productscurrentPage\":1,\"productspageSize\":1,\"productssort\":{\"name\":\"1\",\"position\":\"1\"},\"reviewscurrentPage\":1,\"reviewspageSize\":1,\"wishlistscurrentPage\":1,\"wishlistspageSize\":1,\"wishlist_v2id\":\"1\"}}"
}
EXCEPTION
Max query complexity should be 300 but got 523.
************************************
[]
************************************
1	Magento\Framework\GraphQl\Query\QueryComplexityLimiter::validateFieldCount
	https://github.com/magento/magento2/tree/2.4.6-p4/lib/internal/Magento/Framework/GraphQl/Query/QueryComplexityLimiter.php#L103
	vendor/magento/framework/GraphQl/Query/QueryComplexityLimiter.php:103

2	Magento\Framework\GraphQl\Query\QueryProcessor::process
	https://github.com/magento/magento2/tree/2.4.6-p4/lib/internal/Magento/Framework/GraphQl/Query/QueryProcessor.php#L72
	vendor/magento/framework/GraphQl/Query/QueryProcessor.php:72

3	Magento\GraphQl\Controller\GraphQl::dispatch
	https://github.com/magento/magento2/tree/2.4.6-p4/app/code/Magento/GraphQl/Controller/GraphQl.php#L191
	vendor/magento/module-graph-ql/Controller/GraphQl.php:191

4	Magento\GraphQl\Controller\GraphQl::___callParent
	https://github.com/magento/magento2/tree/2.4.6-p4/lib/internal/Magento/Framework/Interception/Interceptor.php#L58
	vendor/magento/framework/Interception/Interceptor.php:58

5	Magento\GraphQl\Controller\GraphQl::Magento\Framework\Interception\{closure}
	https://github.com/magento/magento2/tree/2.4.6-p4/lib/internal/Magento/Framework/Interception/Interceptor.php#L138
	vendor/magento/framework/Interception/Interceptor.php:138

6	Magento\PageCache\Model\App\FrontController\BuiltinPlugin::aroundDispatch
	https://github.com/magento/magento2/tree/2.4.6-p4/app/code/Magento/PageCache/Model/App/FrontController/BuiltinPlugin.php#L75
	vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php:75

7	Magento\GraphQl\Controller\GraphQl::Magento\Framework\Interception\{closure}
	https://github.com/magento/magento2/tree/2.4.6-p4/lib/internal/Magento/Framework/Interception/Interceptor.php#L135
	vendor/magento/framework/Interception/Interceptor.php:135

8	Magento\GraphQl\Controller\GraphQl::___callPlugins
	https://github.com/magento/magento2/tree/2.4.6-p4/lib/internal/Magento/Framework/Interception/Interceptor.php#L153
	vendor/magento/framework/Interception/Interceptor.php:153

9	Magento\GraphQl\Controller\GraphQl::dispatch
	generated/code/Magento/GraphQl/Controller/GraphQl/Interceptor.php:23

10	Magento\Framework\App\Http::launch
	https://github.com/magento/magento2/tree/2.4.6-p4/lib/internal/Magento/Framework/App/Http.php#L116
	vendor/magento/framework/App/Http.php:116

11	Magento\Framework\App\Http::___callParent
	https://github.com/magento/magento2/tree/2.4.6-p4/lib/internal/Magento/Framework/Interception/Interceptor.php#L58
	vendor/magento/framework/Interception/Interceptor.php:58

12	Magento\Framework\App\Http::Magento\Framework\Interception\{closure}
	https://github.com/magento/magento2/tree/2.4.6-p4/lib/internal/Magento/Framework/Interception/Interceptor.php#L138
	vendor/magento/framework/Interception/Interceptor.php:138

13	Df\Framework\Plugin\App\Http::aroundLaunch
	https://github.com/mage2pro/core/tree/11.3.0/Framework/Plugin/App/Http.php#L10
	vendor/mage2pro/core/Framework/Plugin/App/Http.php:10

14	Magento\Framework\App\Http::Magento\Framework\Interception\{closure}
	https://github.com/magento/magento2/tree/2.4.6-p4/lib/internal/Magento/Framework/Interception/Interceptor.php#L135
	vendor/magento/framework/Interception/Interceptor.php:135

15	Magento\Framework\App\Http::___callPlugins
	https://github.com/magento/magento2/tree/2.4.6-p4/lib/internal/Magento/Framework/Interception/Interceptor.php#L153
	vendor/magento/framework/Interception/Interceptor.php:153

16	Magento\Framework\App\Http::launch
	generated/code/Magento/Framework/App/Http/Interceptor.php:23

17	Magento\Framework\App\Bootstrap::run
	https://github.com/magento/magento2/tree/2.4.6-p4/lib/internal/Magento/Framework/App/Bootstrap.php#L264
	vendor/magento/framework/App/Bootstrap.php:264

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions