Re: You can only have one web with the backend role" when running Shopify remix app

You can only have one web with the backend role" when running Shopify remix app

Jitali_2103
Shopify Partner
34 1 2

I'm working on a Shopify app and encountering an error when trying to run it. The error message I receive is:

"You can only have one web with the backend role in your app"

 

Screenshot_1.png

Replies 10 (10)

Jitali_2103
Shopify Partner
34 1 2
Hi @hassankazmi22,

# Learn more about configuring your app at
https://shopify.dev/docs/apps/tools/cli/configuration

name = "whatsapp-chat"
client_id = "63fb9979e35e3f008b805c5a800d2d75"
application_url = "https://governmental-full-thereby-wrap.trycloudflare.com"
embedded = true

[access_scopes]
# Learn more at
https://shopify.dev/docs/apps/tools/cli/configuration#access_scopes
scopes = "write_products"

[auth]
redirect_urls = [
"https://governmental-full-thereby-wrap.trycloudflare.com/auth/callback",
"
https://governmental-full-thereby-wrap.trycloudflare.com/auth/shopify/callback
",
"
https://governmental-full-thereby-wrap.trycloudflare.com/api/auth/callback"
]

[webhooks]
api_version = "2023-10"

[pos]
embedded = false

[build]
automatically_update_urls_on_dev = true
dev_store_url = "cc-app-store.myshopify.com"

This is my shopify.app.toml file,
Please review this and update me what is the issue.
hassankazmi22
Shopify Partner
25 0 0

Your "shopify.app.toml" file to be mostly correct but here some issue that might be need to be change.

Changes :-

  • Misalingment and extraneous quotes in urls like 'redirect_urls' section.
  • API version is valid or not for your current setup.
  • Ensure that comments are correctly placed without affecting the actual configuration values.

Key Changes :-

  • Fixed the 'redirect_url' section. Ensured proper alignment and removed any stray characters.
  • Adjust the comments to avoid any parsing issues.
  • Double check the API Version ('2023-10') if it's correct your use case.
  • confirm that the scope 'write_products' is what you intend to use.

Note :-

After making all these changes , validate your configuration file by running the shopify cli command, and if there are still issues the cli will typically provide more specific error messages that can guide further adjustment. 

Hope that you can recover your issue soon for further contact whenever you want I'll be there for you. Good luck!

 

Regards : 

@hassankazmi22, 

Jitali_2103
Shopify Partner
34 1 2

Hi @hassankazmi22 

For this, I have found a solution.
Thanks for sharing the solution with me.


I am still facing an issue, if you can solve it please let me know.


When I submit data through this app, it displays a login page that I would like to remove. How can I achieve this?  18238-42709-90442-13217-28871.png

Jitali_2103
Shopify Partner
34 1 2

When I call API using ngrok then it will expire my session how can I resolve that ?

Jitali_2103
Shopify Partner
34 1 2

But when I call demo post API then still facing same issue

Jitali_2103
Shopify Partner
34 1 2

jitalipatel7567@gmail.com

Alejodev
Shopify Partner
2 0 1

Hi, how did you fix the first issue? currently experiencing the same problem...

Jitali_2103
Shopify Partner
34 1 2

Hi @Alejodev,

Please Check your folder is it a duplicate folder is there?

Adityaaa
Shopify Partner
5 0 0

Hey @Jitali_2103 , can you please share the solution? 

 

Jitali_2103
Shopify Partner
34 1 2

Hello @Adityaaa ,

When I encountered this problem I checked my folders to see if I had duplicate application folders. then I deleted the duplicate folder and resolved that issue.