magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.37k stars 9.28k forks source link

observer.customer_register_success event emits null customer object from Magento Cloud #38787

Open leojlu88 opened 1 month ago

leojlu88 commented 1 month ago

Preconditions and environment

Magento CLI 2.4.6-p5

Steps to reproduce

We followed the steps on this page https://developer.adobe.com/commerce/extensibility/events/configure-commerce/ to set up I/O Events. We subscribed and registered both observer.customer_register_success and observer.customer_save_commit_after events. observer.customer_save_commit_after is working fine, but observer.customer_register_success events has null for the customer object. Here is the paylaod: { "data": { "key": "xxx", "value": {}, "source": "xxx", "_metadata": { "commerceEdition": "Adobe Commerce", "commerceVersion": "2.4.6-p5", "eventsClientVersion": "1.7.0", "storeId": "1", "websiteId": "1", "storeGroupId": "1" } }, "id": "xxx", "source": "xx", "specversion": "1.0", "type": "com.adobe.commerce.observer.customer_register_success", "datacontenttype": "application/json", "time": "2024-06-02T07:47:04.256Z", "event_id": "xxx", "recipient_client_id": "xxx" }

We have the ie_events.xml in app/etc

Expected result

customer object emitted from the observer.customer_register_success event should have customer entity_id

Actual result

customer object from the observer.customer_register_success event is null

Additional information

No response

Release note

No response

Triage and priority

m2-assistant[bot] commented 1 month ago

Hi @leojlu88. Thank you for your report. To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:

m2-assistant[bot] commented 1 week ago

Hi @engcom-November. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down: