Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graphql Internal Server Error Get Product Filter By Multiple Category Id #1866

Closed
alexwijanarko opened this issue Jun 29, 2020 · 2 comments
Closed
Assignees
Labels

Comments

@alexwijanarko
Copy link

Preconditions

Magento Version : Magento EE 2.3.4
ElasticSuite Version : 2.8.4
Environment : Developer
Third party modules : -

Steps to reproduce

  1. Call {{base_url}}/graphql with query :
{
  products(
	search:"test"
	filter: {category_id: {in:["4","5"]}}
  )
  {
	items {
  	id
  	name
  	sku
	}
	total_count
	page_info {
  	page_size
	}
  }
}

Expected result

  1. Return data products from category 4 and 5

Actual result

  1. Internal Server Error
  2. Log from exception.log :
    report.ERROR: Warning: Illegal offset type in /xxx/vendor/magento/module-catalog/Model/CategoryRepository.php on line 135 {"exception":"[object] (GraphQL\\Error\\Error(code: 0): Warning: Illegal offset type in /xxx/vendor/magento/module-catalog/Model/CategoryRepository.php on line 135 at /xxx/vendor/webonyx/graphql-php/src/Error/Error.php:174, Exception(code: 0): Warning: Illegal offset type in /xxx/vendor/magento/module-catalog/Model/CategoryRepository.php on line 135 at /xxx/vendor/magento/framework/App/ErrorHandler.php:61)"} []
@rbayet
Copy link
Collaborator

rbayet commented Jun 30, 2020

Also confirmed on a CE 2.3.4.

The graphQL query works on Magento's Elasticsearch 6+ connector.

@rbayet rbayet added the bug label Jun 30, 2020
@rbayet
Copy link
Collaborator

rbayet commented Jun 30, 2020

Also affects Elasticsuite 2.9.x on Magento 2.3.5+

@romainruaud romainruaud assigned romainruaud and unassigned androshchuk and vahonc Aug 3, 2020
romainruaud added a commit to romainruaud/elasticsuite that referenced this issue Aug 3, 2020
romainruaud added a commit that referenced this issue Aug 3, 2020
…r-graphql-28

Fix #1866 Multiple categories filter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants