Skip to content

Scheduler gets error in get chats #297

@Dankoy

Description

@Dankoy

Describe the bug

Scheduler gets error in its scheduled task in request to subscriptions-holder api/v1/telegram_chat?with_subs=true&search=active%3Atrue&page=0&size=10&sort=id%2CASC

Holder has exception

2026-01-21T21:00:01.341892631Z stdout F 2026-01-22T00:00:01.338+03:00 ERROR 1 --- [nio-8082-exec-1] ERROR [subscriptions-holder,,]o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed: org.springframework.orm.jpa.JpaSystemException: Cannot instantiate query result type 'ru.dankoy.subscriptionsholder.subscriptions_holder.core.repository.telegramchat.TelegramChatRepositoryCustomImpl$SubscriptionDTOForNativeQuery' due to: argument type mismatch] with root cause

Example trace - 69713e51b29be7fe20a784efb1b31193

Expected behavior
Scheduler shoould not get any errors. Possible fix in holder.

Screenshots
No

Additional context
None

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingjavaPull requests that update Java codemediumMedium priority

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions