Open ghost opened 3 years ago
Also faced with this issue, @simalexan check if everything works well with api, workaround for me create own version of delivery service
Same problem here. It looks like during last change to notify-delivery.js, 'webhook' was changed for 'webhookUrl', except for line 37 were it was kept as 'webhook'. Sorry @simalexan is there any possibility this can be fixed.
I'll take a look at that in the next day or two. Thanks for reporting the issue.
Hi. I've wrote all the code from your book from chapter 4 and everything works well except changing order status by your api.
That's a code of the create-order handler:
`
create: req => {
}`
That's a code of update-deliver-status: ` updateStatus: req => {
}`
What really strange is that create-handler works okay, and you can even change status manually:
curl -i -H "Content-Type: application/json" -X POST -d '{"deliveryId": "b2902e2f-1d53-4dae-a497-b6f78b299209", "status": "delivered"}' https://9z0y8x3sfj.execute-api.eu-central-1.amazonaws.com/latest/orders/updateStatus
So i guess something wrong with timing on the side of the api, you can check the result of the top curl on that path: https://9z0y8x3sfj.execute-api.eu-central-1.amazonaws.com/latest/orders