New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Shopify/CLI doesn't update config con deploy and doesn't apply automatically_update_urls_on_dev anymore #3860
Comments
Hi! Thanks for reporting the issue. Could you please upgrade the CLI to v3.60.0 and share the output of these commands?
|
@gonzaloriestra please make sure that the effort I made to fill out your form is worth something, I already wrote that everything was tested with CLI 3.60.0...
> shopify app config use shopify.app.dev.toml
╭─ success ────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ Using configuration file shopify.app.dev.toml │
│ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
> info
> shopify app info
CURRENT APP CONFIGURATION
Configuration file shopify.app.dev.toml
App name company Resi DEV
Client ID xxxxxxx
Access scopes customer_read_orders,read_customers,read_orders,read_returns,write_orders,write_returns
Dev store local-dev-company.myshopify.com
Update URLs Yes
Partners account myemail@mycompany.com
💡 To change these, run `npm run dev -- --reset`
YOUR PROJECT
Root location /Users/m.scapoli/workspace/company/company-returns-app
DIRECTORY COMPONENTS
web
📂 web
TOOLING AND SYSTEM
Shopify CLI 3.60.0
Package manager npm
OS darwin-amd64
Shell /bin/zsh
Node version v20.11.0
# Learn more about configuring your app at https://shopify.dev/docs/apps/tools/cli/configuration
client_id = "xxxxxx"
name = "Company Resi DEV"
handle = "company-returns-app-dev"
application_url = "https://size-conspiracy-doing-therapist.trycloudflare.com/"
embedded = true
[build]
automatically_update_urls_on_dev = true
dev_store_url = "local-dev-company.myshopify.com"
include_config_on_deploy = true
[access_scopes]
# Learn more at https://shopify.dev/docs/apps/tools/cli/configuration#access_scopes
scopes = "customer_read_orders,read_customers,read_orders,read_returns,write_orders,write_returns"
[auth]
redirect_urls = [
"https://size-conspiracy-doing-therapist.trycloudflare.com/auth/callback",
"https://size-conspiracy-doing-therapist.trycloudflare.com/auth/shopify/callback",
"https://size-conspiracy-doing-therapist.trycloudflare.com/api/auth/callback"
]
[webhooks]
api_version = "2024-01"
[pos]
embedded = false
npm verb cli /Users/m.scapoli/.nvm/versions/node/v20.11.0/bin/node /Users/m.scapoli/.nvm/versions/node/v20.11.0/bin/npm
npm info using npm@10.2.4
npm info using node@v20.11.0
npm verb title npm run shopify app dev
npm verb argv "run" "shopify" "app" "dev" "--loglevel" "verbose"
npm verb logfile logs-max:10 dir:/Users/m.scapoli/.npm/_logs/2024-05-07T13_28_55_476Z-
npm verb logfile /Users/m.scapoli/.npm/_logs/2024-05-07T13_28_55_476Z-debug-0.log
> shopify
> shopify app dev
╭─ info ───────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ Using shopify.app.dev.toml: │
│ │
│ • Org: MyCompany Spa │
│ • App: company Resi DEV │
│ • Dev store: local-dev-company.myshopify.com │
│ • Update URLs: Yes │
│ │
│ You can pass `--reset` to your command to reset your app configuration. │
│ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
15:29:04 │ graphiql │ GraphiQL server started on port 3457
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
› Press d │ toggle development store preview: ✔ on
› Press g │ open GraphiQL (Admin API) in your browser
› Press p │ preview in your browser
› Press q │ quit
Preview URL: https://local-dev-company.myshopify.com/admin/oauth/redirect_from_cli?client_id=xxxxx
GraphiQL URL: http://localhost:3457/graphiql |
Don't worry, I had read it carefully, I just wanted to ensure you were using v3.60 with the right TOML this time. It seems that the |
My bad this time, sorry. |
Hmm, looking at the log, it's indeed skipping the URL update for some reason... Could you run this command to see if there is any CLI flag in your environment?
One more test: could you create a new app to check if it also happens?
And then choose yes to update URLs and check in Partners if the Cloudflare URL is there. |
@gonzaloriestra For the second test I runned: npm init @shopify/app@latest and then npm run dev and the app was deployed without a problem with URL app:
https://oasis-wordpress-til-condo.trycloudflare.com/
Redirect URLs:
https://oasis-wordpress-til-condo.trycloudflare.com/auth/callback
https://oasis-wordpress-til-condo.trycloudflare.com/auth/shopify/callback
https://oasis-wordpress-til-condo.trycloudflare.com/api/auth/callback @gonzaloriestra is it possible to reset my current app with not working deploy? also creating from the same folder/project a new app with a different |
I'm still not sure what could be happening... Could you help me to debug it?
|
Hi @gonzaloriestra, hi all, after your last comment with the above requests something rised in my mind: due to a succession of deploy in various environments (test, prod) at some point an error began to appear telling me something similar to "can only be one config file for the backend side" (can't find the exact text line in the shell output right now and I'm not able to reproduce 'til next deploy), ended up I had commented the Thanks to you @gonzaloriestra for your help and to light up in my mind these temporary change that I made. Now remains by my side to understand better the true meaning of |
Please confirm that you have:
In which of these areas are you experiencing a problem?
App
Expected behavior
As for
@shopify/cli
versionv3.55.4
commandshould deploy the current target config file and
should rotate cloudflare urls.
Actual behavior
The current cloudflare target url configured on remote Partnership Dashboard returns
... server IP address could not be found.
It doesn't rotate at
shopify app dev
The remote Partnership Dashboard config cannot be modified by deploying a new app version.
Verbose output
Reproduction steps
shopify app config use --reset
and thenshopify app config link
Output:
automatically_update_urls_on_dev = true
andinclude_config_on_deploy = true
and setsembedded = true
modifying my current configuration (as expected as mentioned in the doc https://shopify.dev/docs/api/shopify-cli/app/app-config-link)shopify app deploy --config shopify.app.dev.toml -f
with my custom config file as targetOperating System
Mac OS Sonoma 14.2.1
Shopify CLI version (check your project's
package.json
if you're not sure)tried 3.59.3 and 3.60.0
Shell
zsh
Node version (run
node -v
if you're not sure)v20.11.0
What language and version are you using in your application?
Typescript v5.2.2
The text was updated successfully, but these errors were encountered: