bigcommerce / stencil-cli

BigCommerce Stencil emulator for local theme development
https://developer.bigcommerce.com/stencil-docs
BSD 4-Clause "Original" or "Old" License
101 stars 141 forks source link

not ok -- Error: Request failed with status code 401 #784

Open pmishra-brandcollective opened 3 years ago

pmishra-brandcollective commented 3 years ago

Expected behavior

stencil push should deploy the theme to the store as it was able to do so till 16th Sept 2021

Actual behavior

stencil push fails with below error response

not ok -- Error: Request failed with status code 401

Please visit the troubleshooting page https://developer.bigcommerce.com/stencil-docs/deploying-a-theme/troubleshooting-theme-uploads.
If this error persists, please visit https://github.com/bigcommerce/stencil-cli/issues and submit an issue.
### Steps to reproduce behavior

Environment

Stencil-cli version stencil --version: 3.5.2 Node version node -v: 12.22.1 NPM version npm -v: 6.14.12 OS: Mac Big Sur 11.6 (Intel CPU)

diztinct-glenn commented 3 years ago

I too am having the same problems. Get this not ok -- Error: Could not fetch a list of the store channels: Request failed with status code 401 when running stencil start or stencil push. I am running most recent version of Stencil-CLI. What to do?

spire-mike commented 3 years ago

Same here. Nothing is working for me. @jdietz-atx any luck?

stencil --version
3.6.1

node --version
v12.22.6
spire-mike commented 3 years ago

Generating a new stencil token and running the init command given fixed it for me.

TakenIsAlreadyTaken commented 3 years ago

Generating a new stencil token and running the init command given fixed it for me.

Thank you! You are the man!