Skip to content

无法同步课程 #26

Open
Open

Description

@Logthm

超级课程表上已经导入了课程表,bot可以获取到时间表但是不能获取课程

qq返回信息:
无法同步课程。原因:kotlinx.serialization.MissingFieldException: Fields [title, message] are required for type with serial name 'me.stageguard.sctimetable.api.edu_system.super.ErrorCourseReceiptDTO', but they were missing

测试了几个其他大学,可以正常获取到课程


日志:(qq号替换了)
2021-12-13 15:21:55 E/SuperCourseTimetable: RequestHandlerService: Failed to sync user 123456789's courses, reason: kotlinx.serialization.MissingFieldException: Fields [title, message] are required for type with serial name 'me.stageguard.sctimetable.api.edu_system.super.ErrorCourseReceiptDTO', but they were missing.
2021-12-13 15:21:55 V/Bot.123456789: Friend(123456789) <- 无法同步课程。原因:kotlinx.serialization.MissingFieldException: Fields [title, message] are required for type with serial name 'me.stageguard.sctimetable.api.edu_system.super.ErrorCourseReceiptDTO', but they were missing

Activity

  1. StageGuard commented on Dec 27, 2021

    @StageGuard
    Owner

    应该是api查询失败后返回的信息无法反序列化,使用最近一次发版再运行查看错误信息

  2. Logthm commented on Jan 3, 2022

    @Logthm
    Author

    应该是api查询失败后返回的信息无法反序列化,使用最近一次发版再运行查看错误信息

    更新之后日志如下,似乎报错没变化:
    (cookie和qq号改掉了)
    2022-01-03 19:06:15 I/SuperCourseTimetable: RequestHandlerService: Handle Request: SyncCourseRequest(qq=123456789)
    2022-01-03 19:06:15 V/Bot.123456789: Logs(123456789) -> 确认

    2022-01-03 19:06:16 I/SuperCourseTimetable: RequestHandlerService: Handle Request: InternalSyncCourseRequestViaCookieData(qq=123456789,cookie=LoginCookieData(jSessionId=AAAAAAAAAAAAAAAAAAAAAAAAA-memcached1, serverId=9217963584572a0b5dfb2a5a7565ba75|1641207975|1641207975))

    2022-01-03 19:06:16 E/SuperCourseTimetable: RequestHandlerService: Failed to sync user 123456789's courses, reason: kotlinx.serialization.MissingFieldException: Fields [title, message] are required for type with serial name 'me.stageguard.sctimetable.api.edu_system.super.ErrorCourseReceiptDTO', but they were missing.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions