Open sokolovskyio opened 2 months ago
@sokolovskyio you need to enable redis event bus. I have faced the same issue earlier.
@karanchugh02 now i got an error in logs about
info: Processing product-variant.updated which has 0 subscribers info: Processing order.canceled which has 1 subscribers warn: An error occurred while processing order.canceled: EntityPropertyNotFoundError: Property "store" was not found in "Order". Make sure your query is correct. warn: One or more subscribers of order.canceled failed. Retrying is not configured. Use 'attempts' option when emitting events.
Please update to the latest version and try once. Just fixed the query for that.
@karanchugh02 Please add the handle webhook event order-edit.updated
and other events with order-edit
@sokolovskyio I'll have to work on creating data parsers for the same, will update.
I installed the medusa-events-webhooks plugin for MedusaJS and followed the documentation precisely. After installation, a new configuration option for webhooks appeared in the admin panel. I added my webhook and started performing actions with an order.
However, I encountered an error when processing the order.canceled event:
An error occurred while processing order.canceled: TypeError: Cannot read properties of undefined (reading 'split').
After debugging, I noticed that in the eventsWebhookHandler method, the eventName field in the arguments is undefined.
I am using the latest version of both the plugin and MedusaJS.
Steps to Reproduce:
Install the medusa-events-webhooks plugin. Configure a webhook in the admin panel. Perform actions with an order that triggers the order.canceled event. Observe the error in the logs. Expected Behavior: The order.canceled event should be processed without errors, and the eventName should have the correct value.
Actual Behavior: The eventName field is undefined, causing a TypeError.
Environment:
MedusaJS version: [latest] Plugin version: [latest] Additional Context: Please investigate why the eventName is undefined in the eventsWebhookHandler method and suggest a possible fix.