You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This seems to cause an infinite loop, since it's the same message headers, creating the same message with no payload. I'm not sure if I'm doing something incorrect here or if it's not the intended use case for spring-cloud-function. If I create an endpoint, then the event propagation doesn't occur (since there are no ce headers):
@Bean
funrouter(): RouterFunction<ServerResponse> = coRouter {
POST("/events/log") { req ->val body = req.awaitBody<String>()
logger.error { body }
accepted().buildAndAwait()
}
}
The text was updated successfully, but these errors were encountered:
cldfzn
changed the title
Functions with CloudEvent cause knative events on response
Functions with CloudEvent and KNative cause events on response
Nov 7, 2023
I'm trying out spring-cloud-function with a KNative installation. I have simple spring boot application with the following configuration:
When I set up a KNative trigger to call
/events/log
with a cloud event, the response creates a new cloud event to be triggered with an empty payload:This seems to cause an infinite loop, since it's the same message headers, creating the same message with no payload. I'm not sure if I'm doing something incorrect here or if it's not the intended use case for spring-cloud-function. If I create an endpoint, then the event propagation doesn't occur (since there are no ce headers):
The text was updated successfully, but these errors were encountered: