Mastodon empty response error
Closed this issue · 0 comments
vjousse commented
When clearing notifications, Mastodon returns an empty json object in the response: {}
https://docs.joinmastodon.org/methods/notifications/#clear
Megalodon tries to de-serialize this empty map to the unit type but it fails with the following error:
Error: RequestError(reqwest::Error { kind: Decode, source: Error("invalid type: map, expected unit", line: 1, column: 0) })