serenity icon indicating copy to clipboard operation
serenity copied to clipboard

Some event fails to deserialize, obtaining a `DateTime<Utc>` string rather than an integer

Open vicky5124 opened this issue 4 years ago • 1 comments
trafficstars

Been getting this warn trace log since the middle of yesterday, notifying of an error deserializing an event that used to provide an integer but now provides a DateTime<Utc> String. This is likely due to the API v9 update that happened on the current branch, and should get fixed before a crates.io release happens.

Jul 06 22:16:10.290 WARN run:recv_event:handle_event{event=Err(Json(Error("invalid type: string \"2021-07-06T21:16:10.208870+00:00\", expected u64", line: 0, column: 0)))}: serenity::gateway::shard: [Shard [0, 1]] Unhandled error: Json(Error("invalid type: string \"2021-07-06T21:16:10.208870+00:00\", expected u64", line: 0, column: 0))

[dependencies.serenity]
git = "https://github.com/serenity-rs/serenity"
branch = "current"

With all intents + privileged.

vicky5124 avatar Jul 07 '21 09:07 vicky5124

Is this still an issue?

kangalio avatar Sep 12 '22 12:09 kangalio

Searching for : DateTime yields no result in serenity which hints that the struct field in question has been fixed since, plus nobody else seems to have this issue and there has been no response here. I'll close and reopen if needed

kangalio avatar Apr 07 '23 16:04 kangalio