bigcommerce / bigcommerce-for-wordpress

A headless commerce integration for WordPress, powered by BigCommerce
https://www.bigcommerce.com/wordpress/
GNU General Public License v2.0
109 stars 49 forks source link

Product sync stalls at step 6 - Updating brands #422

Closed bc-tatiana closed 1 year ago

bc-tatiana commented 1 year ago

Expected behavior

The product sync is working when merchants have no brands.

Actual behavior

The product sync stalls when merchants have no brands and do not have enough scopes for the GraphQL requests. The error "Could not retrieve the token" appears in the logs.

Steps to reproduce behavior

  1. Create a BigCommerce store with no brands
  2. Install the BigCommerce for WordPress plugin
  3. When generating an API token do not select the "Storefront API tokens" and "Storefront API customer impersonation tokens" OAuth scopes
  4. Initiate the product sync

Screenshot/Video (if applicable)

Workaround or possible solution

bc-tatiana commented 1 year ago

The issue should be fixed in the 5.0.3 version.

chanceaclark commented 1 year ago

@bc-tatiana I'm going to close this since it's been resolved.