Closed kr428 closed 11 months ago
Note: This is related to a Friendica backend. Not sure where to best report such issues. Cc'ing @annando ? This is most likely a difference in Friendicas Mastodon API implementation?
We would need to see a sample of the JSON document that triggered the error to be able to troubleshoot this error.
Also reading the API docs (https://docs.joinmastodon.org/methods/markers/#get) friendica must be returning everything but the expected object.
Reading the linked issue, it seems to be fixed on Friendica's side.
Our API endpoint was wrongly returning an empty array []
when we didn't have available markers, now it just returns an empty object {}
which may or may not trip the markers.notifications
lookup:
https://github.com/Kaiteki-Fedi/Kaiteki/blob/b6c6fc339a895c6dabbb4e27032feec2de1d08a9/src/kaiteki_core/lib/src/social/backends/mastodon/shared_adapter.dart#L397-L399
It shouldn't since the object properties are nullable.
A Friendica user has successfully tested the updated endpoint with Kaiteki! 🎉
Error Type
_TypeError
Error Message
type 'List' is not a subtype of type 'Map<String, dynamic>' in type cast
Stack Trace
Additional information
Platform: android: SP1A.210812.016.M515FXXS5DWG1 Version: Weekly 2023-47 (1700441989) Backend: (loma.ml, MastodonAdapter, ApiType.mastodon)