Skip to content

Events not received from SAP Cloud Application Event Hub #120

Description

@kirtijain02

Description:

We have a CAP Java application configured to consume events from an internal Event Hub service (using kind: "event-hub" and cds-feature-event-hub:4.0.1).

Setup:

  1. cds-feature-event-hub added to pom.xml
  2. application.yml configured with kind: "event-hub" and format: cloudevents
  3. apm-event-hub service bound with authentication-type: X509_IAS
  4. apm-cloud-identity (IAS) bound with credential-type: X509_GENERATED
  5. Webhook URL configured as srv-cert-api URL
  6. Event handler registered with @on(service = "apm-event-hub", event = "sap.s4.beh.measurementdocument.v1.MeasurementDocument.Created.v1")

Event Hub service instance config (apm-resources mta.yml):

name: apm-event-hub
type: org.cloudfoundry.managed-service
parameters:
service: eventmesh-sap2sap-internal
service-plan: event-mesh-multi-tenant
config:
ceSource:

  • /cf-eu10-canary/sap.apm
    deploymentRegion: cf-eu10-canary
    displayName: event-hub
    webhookUrl: https://{srv-cert-api}/messaging/v1.0/eb

We also enabled DEBUG logging for com.sap.cds.feature.messaging.eventhub.

We also tried sending a test POST request to event hub URL using the Event Hub client certificate and the below headers :
ce-specversion - 1.0
ce-type - sap.s4.beh.measurementdocument.v1.MeasurementDocument.Created.v1
ce-Source - /cf-eu10-sharks/sap.apm/{instance Id}
The request returned 202 Accepted, but we still don't see anything in the application logs.

Problem:
Events are successfully published to Event Hub, but the handler is never triggered. No incoming requests are observed at the webhook endpoint. The S/4 event is acknowledged, and no corresponding logs are visible in APM.

Are there any additional configuration steps not covered in the documentation for internal event mesh?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions