Shopify / cli

Build apps, themes, and hydrogen storefronts for Shopify
https://shopify.dev
MIT License
432 stars 130 forks source link

[Bug]: The authentication loop fails when using UTM 4.5.4 (VM) for macOS #4740

Closed AlekseyKorzun closed 1 week ago

AlekseyKorzun commented 1 week ago

Please confirm that you have:

In which of these areas are you experiencing a problem?

Theme

Expected behavior

The shopify theme dev command successfully completes the authentication loop and starts a local development environment.

Actual behavior

The shopify theme dev throws a generic 'You are not authorized to work on this store' error after a successful authentication loop.

Verbose output

Analytics event sent: { "command": "theme dev", "time_start": 1729783808201, "time_end": 1729783816122, "total _time": 7921, "success": false, "cli_version": "3.69.2", "ruby_version": "3.3.5" "node_version": "22.10.0", "is_employee": false, "uname": "darwin arm64", "env_ci": false, "env_plugin_installed_any_custom": false, "env_plugin_installed_shopify": "[\"@shopify/cli\"]", "env_shell": "zsh", "env_device_id": "2c37893781733eb23324676b72XXXXXXXX", "env_cloud": "localhost", "env_package_manager": "unknown", "env_is_global": true, "env_auth_method": "none", "cmd_app_warning_api_key_deprecation_displayed"; false, "cmd_all_timing_network_ms": 733, "cmd_all_timing_prompts_ms": 2142, "cmd_all_launcher": "unknown", "cmd_all_topic"; "theme", "cmd_all_plugin": "@shopify/theme", "cmd_all_force": false, "cmd_all_verbose": true, "cmd_all_path_override": true, "cmd_all_path_override_hash": "97fa04a5ea71f6bfc4f238dff0807XXXXXXXX", "cmd_all_timing_active_ms": 5045, "cmd_all_exit": "expected_error", "user_id": "unknown", "args": "--verbose", "error_message": "You are not.." }

Reproduction steps

  1. Provision macOS 15.0.1 (24A348) VM Guest via UTM
  2. Install shopify-cli and trigger auth loop via shopify theme dev

Operating System

macOS 15.0.1 (24A348)

Shopify CLI version (check your project's package.json if you're not sure)

3.69.2

Shell

zsh

Node version (run node -v if you're not sure)

22.10.0

What language and version are you using in your application?

No response

AlekseyKorzun commented 1 week ago

Flagging that the workflow works fine within Guests provisioned via Parallels v20.1.0 (55732).