SuperCourseTimetableBot icon indicating copy to clipboard operation
SuperCourseTimetableBot copied to clipboard

无法同步课程

Open Logthm opened this issue 3 years ago • 2 comments
trafficstars

超级课程表上已经导入了课程表,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

Logthm avatar Dec 13 '21 07:12 Logthm

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

StageGuard avatar Dec 27 '21 10:12 StageGuard

应该是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.

Logthm avatar Jan 03 '22 11:01 Logthm