stencil-cli
stencil-cli copied to clipboard
'stencil start' produces Error preventing local development
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
Hi @nDamschen-Aeon!
I think 403 error is caused by invalid (or old) token provided.
Try to follow these steps:
- 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-cli
to upgrade to latest) - Generate a new API key from the control panel, making sure to select "Stencil-CLI token" and "publish theme" as the permission level
- Re-run
stencil init
with your new key - Try to upload again!