Shopify CLI error when pulling /serving/pushing theme

Topic summary

Shopify CLI began failing with a generic “An unexpected error occurred” when working with a theme (pull/serve/push). The CLI message advises enabling a stack trace via the SHOPIFY_CLI_STACKTRACE=1 environment variable for debugging.

Prior usage was trouble-free; the error appeared suddenly. Attempts made: reinstalling the CLI, logging out and back in. Previously found online fixes did not resolve the issue.

Evidence includes a screenshot of the terminal error, which appears central to understanding the exact output.

Most recent update: another participant asked whether a resolution was found. No fix or root cause has been identified in the thread.

Status: unresolved/ongoing; key question remains why the CLI now throws the unexpected error and what steps resolve it.

Summarized with AI on December 25. AI used: gpt-5.

I have been using Shopify CLI with no issues, and then suddenly, I started getting this error.

✗ An unexpected error occured.> > To submit an issue include the stack trace.> > To print the stack trace, add the environment variable SHOPIFY_CLI_STACKTRACE=1.

Please advise on how to resolve this. I already tried reinstalling CLI, logging out and logging back in. None of the solutions I have found online thus far have worked. Thank you!

Hi @caltmandesign , by any chance did you find a resolution to this?