Implement test notification
sharpiepls opened this issue · comments
Error Type
CheckedFromJsonException
Error Message
test
is not one of the supported values: follow, mention, reply, renote, quote, reaction, pollVote, pollEnded, receiveFollowRequest, followRequestAccepted, groupInvited, app, achievementEarned
Stack Trace
#0 $checkedConvert (package:json_annotation/src/checked_helpers.dart:91)
#1 $checkedCreate.checkedConvert (package:json_annotation/src/checked_helpers.dart:28)
#2 _$NotificationFromJson.<anonymous closure> (package:fediverse_objects/src/misskey/notification.g.dart:19)
#3 $checkedCreate.<anonymous closure> (package:json_annotation/src/checked_helpers.dart:33)
#4 $checkedNew (package:json_annotation/src/checked_helpers.dart:51)
#5 $checkedCreate (package:json_annotation/src/checked_helpers.dart:30)
#6 _$NotificationFromJson (package:fediverse_objects/src/misskey/notification.g.dart:10)
#7 new Notification.fromJson (package:fediverse_objects/src/misskey/notification.dart:54)
#8 MappedIterable.elementAt (dart:_internal/iterable.dart:385)
#9 ListIterator.moveNext (dart:_internal/iterable.dart:354)
#10 new _GrowableList._ofEfficientLengthIterable (dart:core-patch/growable_array.dart:189)
#11 new _GrowableList.of (dart:core-patch/growable_array.dart:150)
#12 new List.of (dart:core-patch/array_patch.dart:39)
#13 SetBase.toList (dart:collection/set.dart:119)
#14 KaitekiResponseExtensions.fromJsonList (package:kaiteki_core/src/http/extensions.dart:22)
#15 KaitekiJsonDeserializationResopnseExtensions.fromResponseList (package:kaiteki_core/src/http/extensions.dart:29)
#16 KaitekiJsonDeserializationResopnseExtensions.fromResponseList.<anonymous closure> (package:kaiteki_core/src/http/extensions.dart:29)
<asynchronous suspension>
#17 MisskeyAdapter.getNotifications (package:kaiteki_core/src/social/backends/misskey/adapter.dart:436)
<asynchronous suspension>
#18 NotificationService.build (package:kaiteki/fediverse/services/notifications.dart:51)
<asynchronous suspension>
#19 FutureHandlerProviderElementMixin.handleFuture.<anonymous closure>.<anonymous closure> (package:riverpod/src/async_notifier/base.dart:338)
<asynchronous suspension>
Additional information
Platform: android: SP1A.210812.016.G970U1UEU9IWH2
Version: Weekly 2023-49 (1701651604)
Backend: (mk.arks.cafe, MisskeyAdapter, ApiType.misskey)
And what is test
...?
the instance im on (mk.arks.cafe) allows you to send a test notification to confirm your alerts are working.