Help with webhook in Gadget.

I am using webhook for my gadget app when create the order but no be able to get event. Please let me know why this is happening.
32 Replies
Chocci_Milk
Chocci_Milk•4w ago
Hello, Could you please share more information? What have you tried to do to debug, what app are you working on,, have you filled out the protected customer data access form, did you make sure that the webhooks were registered?
Jaru
JaruOP•4w ago
I have setted like this and I can't catch the event. I get this code from Doc and I can check the 6 webhooks are registered.
No description
Chocci_Milk
Chocci_Milk•4w ago
Could you please provide the rest of the information?
Jaru
JaruOP•4w ago
What could I share so that you can see issue exacly?
Chocci_Milk
Chocci_Milk•4w ago
The name of the application and what you've tried to do to debug
Jaru
JaruOP•4w ago
Seems this is working for now, thank you! Sometimes I catch the event but no always, please take look my app. I am really appreciate if you let me know what is the issue.
Jaru
JaruOP•4w ago
I find the issue whenever click the sync it can be able to catch event.
No description
Jaru
JaruOP•4w ago
What do you think main issue for this? Do I have to click the sync whenever order created or is there no automatic sync?
Chocci_Milk
Chocci_Milk•4w ago
Orders should be updated with webhooks. You don't need to sync to get them. What have you tried to debug? There's most likely something happening on the Shopify end Have you checked to see what the webhook insights page says? That can be found in the partner app, in the left nav
Jaru
JaruOP•4w ago
I have checked in Shopify app partner and this is the result, so is this problem from Shopify end?
No description
Chocci_Milk
Chocci_Milk•4w ago
What are the errors specifically?
Jaru
JaruOP•4w ago
Seems there is no error but only in case click the sync in install of gadget dashboard(I have already shared the image) I can get event regarding create order in log of gadget dashboard, this is problem is first time for me actually.
Chocci_Milk
Chocci_Milk•4w ago
The insights page gives you more information if you click on the specific failures What store are you trying to create orders on?
Jaru
JaruOP•4w ago
I am trying to create order in development store.
Chocci_Milk
Chocci_Milk•4w ago
Can you please share the configurations for app url and redirect that you have on your partner app?
Jaru
JaruOP•4w ago
- App URL - Preferences URL (optional) - Allowed redirection URL(s) Shall I share these stuff, please? Or need others more? Compliance webhooks
Jaru
JaruOP•4w ago
Smelvin
Smelvin•4w ago
It would be in your shopify partners app dashboard, under the Configuration tab
No description
Jaru
JaruOP•4w ago
Could you please check this file? there is screenshots.
Chocci_Milk
Chocci_Milk•4w ago
It's more safe for us if you upload the images individually
Jaru
JaruOP•4w ago
Oh, I see. sorry for that.
Chocci_Milk
Chocci_Milk•4w ago
Ok, those are correct. Could you please open some of the insights and tell us what Shopify is reporting as the issue?
Jaru
JaruOP•4w ago
Okay, just a min, please.
Chocci_Milk
Chocci_Milk•4w ago
Interesting. 401s make no sense to me in this case Let me do a little digging What timezone are you in?
Jaru
JaruOP•4w ago
Here time is almost 1 am am based in Japan. 🇯🇵
Chocci_Milk
Chocci_Milk•4w ago
Oh, nvm. I just realized. Your app urls are set for production but you're testing in development. You need to switch out the URLs to the development URLs
Jaru
JaruOP•4w ago
Humm... So after testing via development store do I have to change this into production again?
Chocci_Milk
Chocci_Milk•4w ago
A couple of things: - Each environment should have their own Shopify app connection - Live shops should never have development apps installed So, when you're trying to move to production, you need to make sure that the production environment (Gadget app/Shopify app) is the one installed on the live store. Is this supposed to be a custom distribution or public application?
Jaru
JaruOP•4w ago
Thank you for let me know! This is custom distribution.
Chocci_Milk
Chocci_Milk•4w ago
So make sure that the production application has that distribution (in the Partner app) and use the link provided by Shopify to install the app
Jaru
JaruOP•4w ago
Thank you! Hi, Good morning, I have already changed into development urls but I can see the event in log only when click the sync still now.
Chocci_Milk
Chocci_Milk•4w ago
Remember to make sure that you install the correct Shopify application/ Gadget environment on the correct store

Did you find this page helpful?