Shopify CLI is returning an OTLPExporterError error with any action

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?

Hi @Shaun_Stanworth,

it finally seems something related to my network connection :slight_smile:

Thanks

1 Like

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:

  • I ran shopify theme dev multiple times (about 5โ€“6), and it consistently exited with the same error mentioned by the original poster.
  • I tried reconnecting to my phoneโ€™s hotspot, toggling airplane mode on the phone, and even restarting my MacBookโ€”none of these steps resolved the issue.
  • I ran 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.
  • After that, I tried 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.