Can't create a webhook that points to a subdomain

Solved
Highlighted
Tourist
4 0 1

I'm tying to have a webhook point to a server that is setup with a subdomain DNS record, in this fake example, call it bar.FOO.com.
When trying to save the webhook, I'm getting:

  • Address cannot be in domains: shopify.com, myshopify.com, FOO.myshopify.com, shop.FOO.com, store.FOO.com, www.FOO.com, FOO.com

Is there anyway around this?

0 Likes
Highlighted
Tourist
4 0 1

Adding some clarification to above:
The DNS for the Shopify store is setup on www.FOO.com, store.FOO.com and shop.FOO.com
When adding the webhook, I'm using something like bar.FOO.com

0 Likes
Highlighted
Tourist
7 1 13

I have the same problem, although I'll add this seems to be recently changed behavior. I have existing webhooks that work fine pointed at a subdomain, but when trying to add new webhooks to the same subdomain, i get this validation error. 

0 Likes
Highlighted
Shopify Staff
Shopify Staff
644 78 141

Hey @sitkashares @modaltb,

Can you provide the request_id from your calls which are failing validation?

I've tested but am unable to replicate any issues when creating webhooks pointing to a subdomain. I believe we only preform validation to ensure the word shopify isn't present in the root domain, and that the https:// protocol has been specified in the address. If you can provide some examples we'll investigate further.

JB | Developer Support @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

0 Likes
Highlighted
Tourist
7 1 13

i can't save my new webhooks due to the validation to help... but if you want to move to DM, i can jump in a call or email string

0 Likes
Highlighted
Tourist
4 0 1

Hi @_JB ,

I can't get to any request IDs to provide any more details on that, but if I had to guess I think it's likely a bug in the "Add a webhook" logic from: 
  https://[store_x].myshopify.com/admin/settings/notifications

Here's the error string:

  • Address cannot be in domains: shopify.com, myshopify.com, modalai.myshopify.com, shop.modalai.com, store.modalai.com, www.modalai.com, modalai.com

 I'm trying to point to something similar to this URL for the webhook:

   https://coolwebhook.modalai.com/shopify/order

If I try:
   https://coolwebhook.modalai.net/shopify/order

The "Add a webook" logic allows me to save the end point.

 

0 Likes
Highlighted
Shopify Staff
Shopify Staff
644 78 141

Hey @modaltb @sitkashares,

Thanks for clarifying. Our developers are aware of the issue and are working on a fix as we speak, I'll post back here to confirm when the fix ships.

JB | Developer Support @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

0 Likes
Highlighted
Tourist
7 1 13

This is an accepted solution.

Thanks! Just hit save and the webhook went through! looks to be resolved. 

2 Likes
Highlighted
Tourist
4 0 1

Thanks for quick fix, nice product, I'm enjoying using shopify 

1 Like
Highlighted
Shopify Staff
Shopify Staff
644 78 141

Glad to hear it's working now. Confirming the fix has shipped, and you won't see validation errors as long as the root domain doesn't contain the word `shopify`, and doesn't resolve to a Shopify IP address.

JB | Developer Support @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

0 Likes