Skip to content

Strange exception after migrating to Micronaut 4 #10258

Answered by loicmathieu
loicmathieu asked this question in Q&A
Discussion options

You must be logged in to vote

I confirm that moving to a POJO for the request body instead of multiple parameters fixes the issue.

    @ExecuteOn(TaskExecutors.IO)
    @Post(uri = "executions/daily")
    @Operation(tags = {"Stats"}, summary = "Get daily statistics for executions")
    public List<DailyExecutionStatistics> dailyStatistics(@Body @Valid StatisticRequest statisticRequest) {
        // @TODO: seems to be converted back to utc by micronaut
        return executionRepository.dailyStatistics(
            statisticRequest.q(),
            tenantService.resolveTenant(),
            statisticRequest.namespace(),
            statisticRequest.flowId(),
            statisticRequest.startDate() != null ? statisticRe…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@loicmathieu
Comment options

@graemerocher
Comment options

@loicmathieu
Comment options

@loicmathieu
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by loicmathieu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants