stencil-cli icon indicating copy to clipboard operation
stencil-cli copied to clipboard

'stencil start' produces Error preventing local development

Open nDamschen-Aeon opened this issue 3 years ago • 1 comments

Expected behavior

run 'stencil start' from bash terminal and for local stencil dev.

Actual behavior

not ok -- Error: Could not fetch a list of the store channels: Request failed with status code 403

Steps to reproduce behavior

run 'stencil start'

Actions taken

1- ensure running node 12 2- uninstall/re-install stencil cli globally 3- ensure validity of OAuth and ClientID

nDamschen-Aeon avatar Jun 30 '21 20:06 nDamschen-Aeon

Hi @nDamschen-Aeon!

I think 403 error is caused by invalid (or old) token provided.

Try to follow these steps:

  1. Make sure you're on the latest version of CLI (make sure stencil --version returns 3.3.0, or simply runnpm i -g @bigcommerce/stencil-clito upgrade to latest)
  2. Generate a new API key from the control panel, making sure to select "Stencil-CLI token" and "publish theme" as the permission level
  3. Re-run stencil init with your new key
  4. Try to upload again!

jairo-bc avatar Jul 01 '21 08:07 jairo-bc