pwa-studio
pwa-studio copied to clipboard
[bug]: Context null on Graphql query when Catalog Permissions enabled
Describe the bug
We are experiencing an issue with the processing of a query. It's throwing the following error:
ERROR:
report.ERROR: Call to a member function getExtensionAttributes() on null {"exception":"[object] (GraphQL\\Error\\Error(code: 0): Call to a member function getExtensionAttributes() on null at /var/www/html/vendor/webonyx/graphql-php/src/Error/Error.php:174, Error(code: 0): Call to a member function getExtensionAttributes() on null at /var/www/html/vendor/magento/module-catalog-permissions-graph-ql/Model/Resolver/Products/DataProvider/Product/CollectionProcessor/ApplyCategoryPermissionsOnProductProcessor.php:96)"} []
To reproduce
Steps to reproduce the behavior:
-
Make sure the Catalog Permissions settings is enabled in the admin:
catalog/magento_catalogpermissions/enabled -
Create a graphql query with a subquery (for example grouped products)
products(filter: { sku: { eq: $productSku } }) { items { name sku url_key ... on GroupedProduct { uid name sku items { qty position product { uid sku name url_key } } } } }
- Execute the query.
Expected behavior
Query should return data of the parent product and the grouped products associated with it.
Screenshots
If applicable, add screenshots to help explain your problem.
Please complete the following device information:
- Magento Version: Commerce Cloud 2.4.2-p1
Please let us know what packages this bug is in regards to:
- [* ]
venia-concept - [* ]
venia-ui - [ ]
pwa-buildpack - [ ]
peregrine - [ ]
pwa-devdocs - [ ]
upward-js - [ ]
upward-spec - [ ]
create-pwa
Hi @aagasi. Thank you for your report. To help us process this issue please make sure that you provided sufficient information.
Please, add a comment to assign the issue: @magento I am working on this
- Join Magento Community Engineering Slack and ask your questions in #github channel.
@magento export issue to JIRA project PWA as Bug
:white_check_mark: Jira issue https://jira.corp.magento.com/browse/PWA-2872 is successfully created for this GitHub issue.
hey @aagasi
as per testing we are not able to reproduce this issue hence kindly help us here with more information if missing any steps or configuration to reproduce.
We waited for more than 14 days for update on this issue, hence we are closing it.
Please feel free to reopen if you are still have any update on the same.