Please confirm that you have:
In which of these areas are you experiencing a problem?
Theme
Expected behavior
it should lead me to login page and then start dev server.
Actual behavior
Shown an error page with the below messages.

Something went wrong.
There was an issue while trying to authenticate.
Return to your terminal and try running the previous command again.
In my console, it shows "the requested scope is invalid, unknown, or malformed



Verbose output
2024-06-01T09:15:23.426Z: Running command theme dev
2024-06-01T09:15:23.449Z: Ensuring that the user is authenticated with the Theme API with the following scopes:
[]
2024-06-01T09:15:23.450Z: Ensuring that the user is authenticated with the Admin API with the following scopes for the store granosmy.myshopify.com:
[]
2024-06-01T09:15:23.452Z: Getting session store...
2024-06-01T09:15:23.454Z: Validating existing session against the scopes:
[
"openid",
"https://api.shopify.com/auth/shop.admin.graphql",
"https://api.shopify.com/auth/shop.admin.themes",
"https://api.shopify.com/auth/partners.collaborator-relationships.readonly",
"https://api.shopify.com/auth/shop.storefront-renderer.devtools",
"https://api.shopify.com/auth/partners.app.cli.access",
"https://api.shopify.com/auth/destinations.readonly",
"https://api.shopify.com/auth/organization.apps.manage"
]
For applications:
{
"adminApi": {
"scopes": [],
"storeFqdn": "granosmy.myshopify.com"
}
}
2024-06-01T09:15:23.457Z: Initiating the full authentication flow...
2024-06-01T09:15:23.459Z: Authorizing through Identity's website...
To run this command, log in to Shopify.
👉 Press any key to open the login page on your browser
2024-06-01T09:15:28.562Z: Reading the content of file at C:/Users/yizhi.po/AppData/Roaming/nvm/v18.16.0/node_modules/@shopify/cli/dist/assets/auth-error.html...
2024-06-01T09:15:28.627Z: Reading the content of file at C:/Users/yizhi.po/AppData/Roaming/nvm/v18.16.0/node_modules/@shopify/cli/dist/assets/style.css...
╭─ error ─────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ The requested scope is invalid, unknown, or malformed. │
│ │
╰─────────────────────────────────────────────────────────────────────────────────────────────╯
2024-06-01T09:15:29.111Z: Obtaining the dependency manager in directory C:/Users/yizhi.po...
2024-06-01T09:15:29.144Z:
Running system process:
· Command: ruby -v
· Working directory: C:/Users/yizhi.po/Documents/private/granos-commerce
2024-06-01T09:15:30.594Z: Request to https://monorail-edge.shopifysvc.com/v1/produce completed in 300 ms
With response headers:
- x-request-id: 593ff309-50c0-4c87-b311-f3c5a1994d27
2024-06-01T09:15:30.596Z: Analytics event sent: {
"command": "theme dev",
"time_start": 1717233323426,
"time_end": 1717233329105,
"total_time": 5679,
"success": false,
"cli_version": "3.61.0",
"ruby_version": "3.0.7",
"node_version": "18.16.0",
"is_employee": false,
"uname": "windows amd64",
"env_ci": false,
"env_plugin_installed_any_custom": false,
"env_plugin_installed_shopify": "[\"@shopify/cli\"]",
"env_shell": "cmd.exe",
"env_device_id": "9f74ce97c6a908b8eeb7837dbd4a7032e5631bec",
"env_cloud": "localhost",
"env_package_manager": "npm",
"env_is_global": true,
"cmd_app_warning_api_key_deprecation_displayed": false,
"cmd_all_timing_network_ms": 0,
"cmd_all_timing_prompts_ms": 5559,
"cmd_all_launcher": "unknown",
"cmd_all_topic": "theme",
"cmd_all_plugin": "@shopify/cli",
"cmd_all_force": false,
"cmd_all_verbose": true,
"cmd_all_path_override": true,
"cmd_all_path_override_hash": "20cbc93a1a37464b5a8ce1df4c793ec5e6b1e823",
"cmd_all_timing_active_ms": 119,
"cmd_all_exit": "expected_error",
"args": "--store granosmy.myshopify.com --verbose",
"error_message": "The requested scope is invalid, unknown, or malformed.",
"env_plugin_installed_all": "[\"@shopify/cli\"]",
"metadata": "{\"extraPublic\":{},\"extraSensitive\":{}}"
}
2024-06-01T09:15:30.600Z: Reporting handled error to Bugsnag: The requested scope is invalid, unknown, or malformed.
2024-06-01T09:15:30.624Z: Obtaining the dependency manager in directory C:/Users/yizhi.po...
Reproduction steps
- run shopify theme dev --store
- press any key to open login page in browser
- see an error page instead of login page in browser
Operating System
Windows 11
Shopify CLI version (check your project's package.json if you're not sure)
3.61.0
Shell
powershell
Node version (run node -v if you're not sure)
v18.16.0
What language and version are you using in your application?
Ruby 3.0.7
Please confirm that you have:
In which of these areas are you experiencing a problem?
Theme
Expected behavior
it should lead me to login page and then start dev server.
Actual behavior
Shown an error page with the below messages.
Something went wrong.
There was an issue while trying to authenticate.
Return to your terminal and try running the previous command again.
In my console, it shows "the requested scope is invalid, unknown, or malformed
Verbose output
Reproduction steps
Operating System
Windows 11
Shopify CLI version (check your project's
package.jsonif you're not sure)3.61.0
Shell
powershell
Node version (run
node -vif you're not sure)v18.16.0
What language and version are you using in your application?
Ruby 3.0.7