Liquid language server crashes if used offline

I have reproduced the issue on the latest CLI version.

Yes, I am on the latest version

I have searched existing posts and this report is not a duplicate.

Yes, this isn’t a duplicate

In which of these areas are you experiencing a problem?

Other

Expected behavior

  1. Using LSP offline shouldn’t crash the server
  2. Telemetry should be disabled by default

Actual behavior

If you try to run LSP locally without setting “SHOPIFY_CLI_NO_ANALYTICS” the LSP will crash

Reproduction steps

  1. Disconnect from the internet
  2. Open “shopify theme language-server” in your favorite editor, neovim in my case and make sure to not disable telemetry.
  3. After 1-2 seconds you see this message and the LSP will stop working:
[ERROR][2025-11-13 17:20:45] ...p/_transport.lua:36	"rpc"	"shopify"	"stderr"	
"Error: 
getaddrinfo ENOTFOUND otlp-http-production-cli.shopifysvc.com
at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:122:26)"

Changing this function to disable telemetry manually seems to fix the issue:

function createMetricRecorder(options) {
    return true;
    // let recorder = “console”;
    // return options.skipMetricAnalytics || isUnitTest() || (recorder = {
    //     type: “otel”,
    //     otel: globalOtelService(options)
    // }), recorder;
}

Verbose output

Operating system

CLI version

3.87.2

Thanks David, I’ll create an issue for this!

1 Like