Hi there,
for a while now, Shopify CLI is returning this error on any action:
I have reproduced it from several terminals.
Please could you take a look?
Hi there,
for a while now, Shopify CLI is returning this error on any action:
I have reproduced it from several terminals.
Please could you take a look?
Hi @sinuhe โ we havenโt had this reported before (as far as Iโm aware), and Iโm unable to recreate. This code is logging some timing information back to Shopify so we can monitor command performance over time. You are totally welcome to switch this off: its documented, and the environment variable to set is SHOPIFY_CLI_NO_ANALYTICS=1
Thatโs a workaround โ itโd be good to fix the underlying bug. Anything interesting about your network set-up? Do you use a proxy/VPN, internal firewall, have particularly poor internet speed? And when you say โfor a while nowโ, is it every time/some time, and what sort of time span are you talking about?
Hello,
Iโd like to report the same issue.
My MacBook is connected to the internet via my Android phoneโs mobile data over Wi-Fi (hotspot). No VPN is active on either device.
Hereโs a summary of what I tried and what happened:
shopify theme dev
multiple times (about 5โ6), and it consistently exited with the same error mentioned by the original poster.shopify auth logout
and logged in again. Interestingly, while trying to log in, the OTP from my authenticator app repeatedly failed with an โincorrect codeโ message, even after multiple attempts. This might suggest a time sync issue. I had to fall back to SMS verification, which worked and allowed me to log in.shopify theme dev
again. This time, I got a similar error, slightly different in message, but it didnโt crash or exit. Iโm now able to use it, which is greatโbut I wanted to share these details in case theyโre helpful:[1] https://mystore.myshopify.com/?preview_theme_id=177413062940
[2] https://mystore.myshopify.com/admin/themes/177413062940/editor
[3] http://127.0.0.1:9292/gift_cards/[store_id]/preview
โญโ error โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ Failed to render storefront with status 502 (Bad Gateway). โ
โ URL: https://mystore.myshopify.com/?_fd=0&pb=0 โ
โ โ
โ FetchError: request to https://mystore.myshopify.com/?_fd=0&pb=0 failed, โ
โ reason: socket hang up โ
โ at ClientRequest.<anonymous> (file:///opt/homebrew/Cellar/shopify-cli/3.72.2/lib โ
โ exec/lib/node_modules/@shopify/cli/dist/chunk-VWNWE4HG.js:28106:14) โ
โ at ClientRequest.emit (node:events:525:35) โ
โ at ClientRequest.emit (node:domain:489:12) โ
โ at emitErrorEvent (node:_http_client:104:11) โ
โ at TLSSocket.socketOnEnd (node:_http_client:542:5) โ
โ at TLSSocket.emit (node:events:525:35) โ
โ at TLSSocket.emit (node:domain:489:12) โ
โ at endReadableNT (node:internal/streams/readable:1696:12) โ
โ at process.processTicksAndRejections (node:internal/process/task_queues:90:21) โ
โ โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โข 14:02:27 Request ยป GET 200 / 17230ms
Let me know if youโd like me to share anything else or run any specific tests.
Correction:
The authenticator app issue was my own mistake, I had two different accounts, I was using the code from the wrong one.