cli: [Bug]: It does not initiate the request through the proxy
Please confirm that you have:
- Searched existing issues to see if your issue is a duplicate. (If you’ve found a duplicate issue, feel free to add additional information in a comment on it.)
- Reproduced the issue in the latest CLI version.
In which of these areas are you experiencing a problem?
Theme, App
Expected behavior
The request is made through the proxy.
Actual behavior
I am in China and I need to develop Shopify through a proxy.
When developing a theme locally execute shopify theme dev

On MacOS, I set proxy for terminal with export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890 Then I executed shopify theme dev It still doesn’t make requests through the proxy.
What causes this? Does anyone know? Thanks in advance! I am using the latest version. Everything is up to date on MacOS
Verbose output
2023-03-27T02:25:12.641Z: Running command theme dev
shopify:theme:dev init version: @oclif/core@2.1.4 argv: [ '--verbose' ] +0ms
2023-03-27T02:25:12.652Z: Ensuring that the user is authenticated with the Theme API with the following scopes:
[]
2023-03-27T02:25:12.652Z: Ensuring that the user is authenticated with the Admin API with the following scopes for the store anony.myshopify.com:
[]
2023-03-27T02:25:12.652Z: Getting session store...
2023-03-27T02:25:12.654Z: 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"
]
For applications:
{
"adminApi": {
"scopes": [],
"storeFqdn": "anony.myshopify.com"
}
}
2023-03-27T02:25:12.654Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2023-03-27T02:25:12.654Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:
- User-Agent: Shopify CLI; v=3.44.1
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: darwin
- Content-Type: application/json
╭─ error ──────────────────────────────────────────────────────────────────────╮
│ │
│ request to https://accounts.shopify.com/oauth/introspection failed, │
│ reason: connect ETIMEDOUT 185.146.173.20:443 │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
2023-03-27T02:26:27.731Z: Unable to log analytics event - no information on executed command
Reproduction steps
1.Set proxy port in terminal
2.Execute the command shopify theme dev
Operating System
MacOS Ventura, Windows 11
Shopify CLI version (check your project’s package.json if you’re not sure)
3.44.1
Shell
zsh, cmd
Node version (run node -v if you’re not sure)
v19.8.1
What language and version are you using in your application?
No response
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 15
Hello everyone, great! Now it works fine again. But don’t know exactly what caused it. Or is there any update? If your shopify-cli terminal proxy still doesn’t work, try updating. Or keep using “proxifier”. Although I haven’t updated any, but you can try any way. I’m closing this question for now.
@zhouru1bin I use it with ClashX and there is no configuration with Authentication enabled. This should only be configured relative to the local machine. Usually there is no need to set it. Below is my configuration. For example, my ClashX mixed-proxy port is 7890