Skip to content

Product rest api is not returning results in magento 2.2.5 #16536

@Gurdit

Description

@Gurdit

Preconditions

  1. Magento 2.2.5
  2. php 7.0.30

Steps to reproduce

  1. Hit Product rest api for 200k products with pageSize = 0 to return full 200k items.
  2. Consumer Key : [redacted]
  3. Consumer Secret : [redacted]
  4. Access Token : [redacted]
  5. Access Token Secret : [redacted]

`$requestUrl='[redacted]/rest/V1/products?searchCriteria=0&searchCriteria[filter_groups][0][filters][0][field]=visibility&searchCriteria[filter_groups][0][filters][0][value]=4&searchCriteria[filter_groups][0][filters][0][condition_type]=eq'

		$ch = curl_init($requestUrl);
		curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
		curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/json","Authorization: Bearer  **[redacted]**"));
		curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
		$result = curl_exec($ch);
		$result = json_decode($result,true);
                    echo 'Items Count =>  '.count($result['items']);

`

Expected result

  1. [Return the items requested on the api]

Actual result

  1. [Blank page with no errors and no result]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: CatalogComponent: WebapiUse with concrete module component label E.g. "Component: Webapi" + "Catalog"Event: dmcdindia1Issue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P3May be fixed according to the position in the backlog.Progress: doneReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 releaseSeverity: S3Affects non-critical data or functionality and does not force users to employ a workaround.stale issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions