Solved

Shopify webhook not working

Petro_P
Shopify Partner
21 4 3

Hi, I've createdSHOP_UPDATE webhook and tried to edit my shop, however, the hook is not triggered, I did not receive any data to my endpoint(i checked access logs on my web server, there is nothing).
First I tried to create it with a REST API, it was created and I successfully received it in a list of hooks (Endpoint).
But it did not work, then I tried to delete it and create a new one with Graphql mutation - the same result - it's created but never triggered(i tried to edit everything in my shop, from name to street and country).

I tried multiple URLs(webserver URLs, no luck).
So I decided to create some other hook, PRODUCTS_UPDATE and you know what? it's not triggered, could you help me?

mutation {
webhookSubscriptionCreate(topic: PRODUCTS_UPDATE, webhookSubscription: {
callbackUrl: "https://mysurl.com",
format: JSON
}) {
userErrors {
field
message
}
webhookSubscription {
id
}
}
}

here more info(ID is a real one)

    "id" => 721538809909
    "address" => "https://mysitehere.com"
    "topic" => "products/update"
    "created_at" => "2019-11-15T11:33:07-04:00"
    "updated_at" => "2019-11-15T11:33:07-04:00"
    "format" => "json"
    "fields" => []
    "metafield_namespaces" => []
    "api_version" => "2019-10"
    "private_metafield_namespaces" => []

 

Loyalty and Rewards + Referrals app- Skymars Loyalty
Accepted Solution (1)
Petro_P
Shopify Partner
21 4 3

This is an accepted solution.

Fixed this problem

It was related to this issue - https://community.shopify.com/c/Shopify-APIs-SDKs/Webhook-registered-but-not-fired/td-p/516160

 

SSl certificate not trusted by some browsers, fixed by adding fullchain.pem to NGINX config on my websever.

Loyalty and Rewards + Referrals app- Skymars Loyalty

View solution in original post

Replies 2 (2)

Petro_P
Shopify Partner
21 4 3

anyone? )

Loyalty and Rewards + Referrals app- Skymars Loyalty
Petro_P
Shopify Partner
21 4 3

This is an accepted solution.

Fixed this problem

It was related to this issue - https://community.shopify.com/c/Shopify-APIs-SDKs/Webhook-registered-but-not-fired/td-p/516160

 

SSl certificate not trusted by some browsers, fixed by adding fullchain.pem to NGINX config on my websever.

Loyalty and Rewards + Referrals app- Skymars Loyalty