What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Webhook Failure

Solved

Webhook Failure

RobbeHeirman
Visitor
2 1 1

Dear Shopify Devs

 

Issue with the following webhook In production:

Create Order:

'https://topdrankenmanager.overseas.be/handle_return/receive_order'

Belonging to topdranken.shop

Tried to define both on a private web app and as a webhook on the notification page of the store.

I do not receive any messages on my production enviroment when i trigger the event 'order created'

 

I can reproduce the messages in postman with success so the url works just fine. I can also call the shopify api from this domain in the other direction.

Everything works fine in my test enviroment. Note: ngrok is used to get a correct ssl signing there.

 

My ssl certificate looks in order on the production server. But i receive no messages (why it makes me suspicious about correct configuration of my ssl..)

 

I would like to provide a trace but i don't have any... Is there a way i can atleast check the response messages when the webhook is called?

Accepted Solution (1)

RobbeHeirman
Visitor
2 1 1

This is an accepted solution.

In the meantime i found the issue of my problem.

Ill add the solution for future reference/

I incorrectly configured my SSL certificate in the production environment.

The ssl chain was incomplete. Chrome/Firefox/Edge don't complain about this but this probably caused Shopify to halt the sending of the message after the ssl negotiation.

Reconfiguring with the correct certificate did the trick and the webhook works correctly now.

 

Thank you to the guys at pythonanywhere to help me find the solution.

Shopify I would recommend giving access to the logs on webhooks in case of failure. Then i would have gotten there on my own.

 

wish you all the best

Robbe

View solution in original post

Reply 1 (1)

RobbeHeirman
Visitor
2 1 1

This is an accepted solution.

In the meantime i found the issue of my problem.

Ill add the solution for future reference/

I incorrectly configured my SSL certificate in the production environment.

The ssl chain was incomplete. Chrome/Firefox/Edge don't complain about this but this probably caused Shopify to halt the sending of the message after the ssl negotiation.

Reconfiguring with the correct certificate did the trick and the webhook works correctly now.

 

Thank you to the guys at pythonanywhere to help me find the solution.

Shopify I would recommend giving access to the logs on webhooks in case of failure. Then i would have gotten there on my own.

 

wish you all the best

Robbe