Webhook /Litium Connect not triggering

I have registered a webhook. I get reply that it is registered and when i run GET /litium/api/webhooks/registrations i get it back:

[
{
“description”: “Erp Connector Order Confirmed”,
“filters”: [
“Litium.Connect.Erp.Events.OrderConfirmed”
],
“headers”: {},
“id”: “orderConfirmed”,
“properties”: {
“RemoteIpAddress”: “127.0.0.1”,
“Device”: “”
},
“secret”: “12345678901234567890123456789012”,
“webHookUri”: “https://blablablabla.ngrok.io/api/Webhook/OrderComplete
}
]

(i removed the real ngrok url from my example above…)

I have verified that when I visit the webhookUri myself it is up and running and working properly.
But… when i place an order… no callback to my webHookUri ever happens… any ideas? Is there any setup missing?

Also: the documenation here: https://docs.litium.com/documentation/architecture/events-handling/webhooks/webhook-registration for webhooks has a faulty example, the event for OrderComplete is not Litium.Accelerator.Events.OrderConfirmed as that page says, its Litium.Connect.Erp.Events.OrderConfirmed the one in documentation results in error.

Local project running Litium 7.4.2 The same code that runs this worked fine on the test erp connect website you had set up for us before.

/Martin

Is there any errors or other logging in the log file? (the litium.log on disc, not the event log database table)

After i fire up my connector:

2020-04-15 11:01:47.2312 [App:02] [0815cd6d-16df-437d-8207-94f69e696eaa] [TRACE] [] Litium.Application.Events.WebHooks.Engine.WebHookEventSubscriptionEngine - WebHookEvent subscription created for registration abda566c-c7e5-4b4a-a045-f31ef22dcb17 and type Litium.Connect.Erp.Events.OrderConfirmed.

Then i place order, i can see for example:

2020-04-15 11:02:54.9017 [App:02] [81ebe40a-44a9-4d12-a11f-c059df5c0e9c] [TRACE] [IndexWriter#Orders] Litium.Foundation.Search.Providers.IndexingProvider+InternalIndexQueue - Start Update 1 to index Orders

But no errors or debug info about webhook in the log, other than this:

2020-04-15 11:02:56.3974 [App:02] [159a6cc7-76a7-4fe1-983d-9fec132d5be5] [ERROR] [] Litium.Accelerator.Services.MailService - Sending e-mail failed. Mail sender was empty. Check mail configuration settings

The rest was TRACE-log for indexing.

http://rtinbrandt.se/litium.log

Is the order in confirmed state?

New or upgraded solution?

Confirmed: yes
Upgraded: yes

Do you have added the event publisher for the order confirmed event in OrderStateBuilder?

Nope! Thanks… i thought it was built deeper into Litium :slight_smile:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.