gitgabrio commented on code in PR #3868:
URL:
https://github.com/apache/incubator-kie-kogito-runtimes/pull/3868#discussion_r2079632468
##########
springboot/addons/jobs/src/main/java/org/kie/kogito/jobs/management/springboot/CallbackJobsServiceResource.java:
##########
@@ -81,7 +82,8 @@ public ResponseEntity<String>
triggerTimer(@PathVariable(PROCESS_ID) String proc
JobCallbackPayload jobPayload =
objectMapper.readValue(payload, JobCallbackPayload.class);
correlationId = jobPayload.getCorrelationId();
} catch (Exception e) {
- return
ResponseEntity.status(HttpStatus.BAD_REQUEST).body("Invalid payload: " +
payload + ". " + e.getMessage());
+ logger.warn("Payload parsing error", e);
+ return
ResponseEntity.status(HttpStatus.BAD_REQUEST).body("Invalid payload format.
Please check the request body.");
Review Comment:
@bncriju pls see previous comments
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]