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

stencil start: not ok -- StoreHashReadError: Request failed with status code 400

Open findcaiyzh opened this issue 3 years ago • 5 comments

Expected behavior

stencil start is successful

Actual behavior

stencil start not ok -- StoreHashReadError: Request failed with status code 400

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

  • Followed the steps of https://developer.bigcommerce.com/stencil-docs/ZG9jOjIyMDcwMA-installing-stencil-cli Setup Stencil in windows 10. All steps were successful.

  • Downloaded Cornerstone template, unzip it

  • stencil init is successful: stencil init --url https://xxxxx.mybigcommerce.com --token xxxxxxxx --port 3000 ? What API Host would you like to use? https://api.bigcommerce.com Set API host to: https://api.bigcommerce.com You are now ready to go! To start developing, run $ stencil start

The token is from an account which Stencil-CLI Access level is publish theme

Environment

Stencil-cli version stencil --version: stencil --version 3.12.0

Node version node -v: node -v v12.22.11

NPM version npm -v: npm -v 6.14.16

OS: windows 10.

findcaiyzh avatar Apr 01 '22 00:04 findcaiyzh

Hi @findcaiyzh, how old is your token? I would recommend you to create a new one.

jairo-bc avatar Apr 01 '22 13:04 jairo-bc

Hi @findcaiyzh, how old is your token? I would recommend you to create a new one.

The token was created several hours before I use it.

findcaiyzh avatar Apr 02 '22 09:04 findcaiyzh

@findcaiyzh Does other types of stencil cli token work for you?

jairo-bc avatar Apr 04 '22 12:04 jairo-bc

Is your stencil url really https://xxxxx.mybigcommerce.com/ with the xxxx being the hash? The hash should come after store-.

It should be https://store-xxxxx.mybigcommerce.com/

ShawnJW avatar Apr 08 '22 04:04 ShawnJW

I have the same problem. Have you solved it?

JinMengmeng1998 avatar Apr 21 '22 03:04 JinMengmeng1998