Stencil not ok -- Error: Could not fetch a list of the store channels: Request failed with status code 422
Expected behavior
Should run the stencil template
Actual behavior
Giving not ok -- Error: Could not fetch a list of the store channels: Request failed with status code 422 error
Node Version: 12.22.6 Stencil Version: 3.5.2 NPM Version: 6.14.15
@jpanduro-blackbird I have updated the description
@shreyastvd Could you please send details on which theme you are and store url on my corporate email: [email protected]?
Also just started getting this after upgrading to 3.5.0
As a very quick update - 3.5.2 fixes
Hello Alex,
I get this error when I try to run stencil start. I have tried to run with a fresh cornerstone theme.
I am using stencil version v3.5.2. Node version v12.22.6 and npm version 6.14.15.
Please see the attached image for more error information.
[image: Screen Shot 2021-09-27 at 11.40.21 PM.png]
Please let me know if you need more information.
Thanks, Shreyas
On Fri, Sep 24, 2021 at 11:33 AM Alex Hellier @.***> wrote:
As a very quick update - 3.5.2 fixes
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/bigcommerce/stencil-cli/issues/772#issuecomment-926721681, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOYFCJOKWATWERJA3KABXBLUDSK45ANCNFSM5EJ6HWKQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
--
Shreyas Shah JavaScript Developer
Hi @shreyastvd I should probably state 3.5.2 fixes it for me, I don't work for BC I just updated to 3.5.0 as per their info to solve a bug, and ran into that issue, found 3.5.2 had been released and this resolved the issue for me.
If you're getting a similar error message but with a 403 error (authorization) you might be trying to use the old store API tokens which worked prior to this update for me, vs. the new Stencil CLI tokens. Generating a new Stencil CLI token in the store and running the init command it gives fixed the issue for me.
Hello to All,
I have found the solution to this error. Now instead of creating "V2/V3" token you guys have to create "Stencil CLI Token".
Node version: 10.17.0 NPM Version: 6.4.0 Stencil Version: 2.1.1