Open edward-simpson opened 2 years ago
+1 Exact same issue for me.
+1 same issue here as well. please advise. This seems to be only for older projects that I'm working on though
same issue with me.
Confirmed the same occurs with latest version of stencil (6.0.0)
I had to same issue, but i manage to solve that with VPN thru USA.
Hi All
I see the issue is still open and wanted to share a workaround we found for this so that it can benefit anyone who is still blocked. Since using CF is what causes this, we found a way to add a redirect rule for the Stencil version check to use the store's permanent URL. Please see image below.
Thanks.
Expected behaviour
Running
stencil start
a local development version of the site should be spun up without issueActual behaviour
Error reported:
The request in question is to the
/stencil-check-version
endpoint, the response is a cloudflare security challengeThis also occurs if we bypass the client's CF using a host file entry, but we're unsure whether BC CF is fingerprinting the request and still presenting the same challenge when going direct.
We've been able to bypass this by using the normalStoreUrl (
initialStencilConfig.normalStoreUrl
) in thecheckCliVersion
call in thestencil start
commandSteps to reproduce behaviour
Proxy the site through cloudflare using a custom url and subdomain (e.g. bc.site-url.com), with the custom url as the channel url in bigcommerce.
Environment
Stencil-cli version
stencil --version
: 5.1.0Node version
node -v
: 14.19.3NPM version
npm -v
: 6.14.17OS: Monterey 12.0.1 w/ M1 chip (but occurs on non M1 chip)