Resolve Unexpected Error on gulp extension:fetch

With the update on SuiteCommerce Extension Management bundle to support token-based authentication (TBA), a user may encounter unexpected error when executing gulp extension:fetch when integration record is not created.

To resolve the error, follow the steps

The following gulp commands have been added with the 2023.1 release, and can be used with extension and theme developer tools:

  • gulp reactivate – triggers a reactivation process of all the extensions and themes installed on your website
  • gulp reactivate --async – triggers a reactivation process of all the extension and themes installed in your website asynchronously
  • gulp reactivate --update – triggers a reactivation process of all the extensions and themes installed in your website, updating each to the latest available version
  • gulp extension:deploy --reactivate – allows you to deploy and reactivate the extensions and themese on your website
  • gulp theme:deploy --reactivate – allows you to deploy and reactivate the extensions and themes on your website

The SuiteCommerce Extension Management bundle has been updated to support token-based authentication (TBA). To take advantage of the update, complete the following steps:

  1. Create an integration record.For more information, see Create Integration Records for Applications to Use TBA.
    1. In the Name field, enter a name for the integration record.
    2. In the State field, select Enabled.
    3. Check the Token-Based Authentication box.
    4. Check the TBA: Authorization Flow box.
    5. In the Callback URL field, enter: http://localhost:7777/tba.
    6. Clear the Authorization Code Grant box.
    7. Check the User Credentials box.
  2. Save the integration. Be sure to save the consumer key/secret before closing the page.
  3. Copy and paste the consumer key/secret in the .env file.

Leave a comment

Your email address will not be published. Required fields are marked *