bigcommerce / stencil-cli

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

Report "socket hang up" issue #1220

Open iceleo-com opened 3 weeks ago

iceleo-com commented 3 weeks ago

Today, I got "socket hang up" issue when developing stencil theme. The problem happen after running command stencil start. This command worked as expected till today.

brat@Brat-Inspiron-16-Plus-7630:~/Works/BigC/fwh-theme$ stencil start
API host set in config file: https://api.bigcommerce.com

not ok -- StoreHashReadError: socket hang up

URL: http://fabricwarehouse.com/admin/oauth/info
Method: GET
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.

I solved this problem, but I want to share how I solved it. Hope it helps someone, and let the developer know about this issue.

To solve this issue, you need to edit file config.stencil.json, change the value of field normalStoreUrl from http:// to https:// to switch from regular HTTP to HTTP over SSL