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
- Using LSP offline shouldn’t crash the server
- 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
- Disconnect from the internet
- Open “shopify theme language-server” in your favorite editor, neovim in my case and make sure to not disable telemetry.
- 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