Manatee.Trello
Manatee.Trello copied to clipboard
IBoardLabelCollection.Refresh() throws exceptions due to unsupported label colors
Bug When refreshing the board, the following exception occurs:
ex {System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Requested value 'black_dark' was not found. at System.Enum.TryParseByName(RuntimeType enumType, String originalValueString, ReadOnlySpan1 value, Boolean ignoreCase, Boolean throwOnFailure, UInt64& result) at System.Enum.TryParseInt32Enum(RuntimeType enumType, String originalValueString, ReadOnlySpan
1 value, Int32 minInclusive, Int32 maxInclusive, Boolean ignoreCase, Boolean throwOnFailure, TypeCode type, Int32& result) at System.Enum.TryParse(Type enumType, String value, Boolean ignoreCase, Boolean throwOnFailure, Object& result) at Manatee.Json.Serialization.Internal.Serializers.EnumNameSerializer.Deserialize(DeserializationContext context) at Manatee.Json.Serialization.JsonSerializer.Deserialize(DeserializationContext context)… Data {System.Collections.ListDictionaryInternal} HResult -2146232828 HelpLink (null) InnerException {System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Requested value 'black_dark' was not found. at System.Enum.TryParseByName(RuntimeType enumType, String originalValueString, ReadOnlySpan1 value, Boolean ignoreCase, Boolean throwOnFailure, UInt64& result) at System.Enum.TryParseInt32Enum(RuntimeType enumType, String originalValueString, ReadOnlySpan
1 value, Int32 minInclusive, Int32 maxInclusive, Boolean ignoreCase, Boolean throwOnFailure, TypeCode type, Int32& result) at System.Enum.TryParse(Type enumType, String value, Boolean ignoreCase, Boolean throwOnFailure, Object& result) at Manatee.Json.Serialization.Internal.Serializers.EnumNameSerializer.Deserialize(DeserializationContext context) at Manatee.Json.Serialization.JsonSerializer.Deserialize(DeserializationContext context) at Manatee.Json.Serialization.Internal.Serializers.NullableSerializer._Decode[T](DeserializationContext c… Data {System.Collections.ListDictionaryInternal} HResult -2146232828 HelpLink (null) InnerException {System.ArgumentException: Requested value 'black_dark' was not found. at System.Enum.TryParseByName(RuntimeType enumType, String originalValueString, ReadOnlySpan1 value, Boolean ignoreCase, Boolean throwOnFailure, UInt64& result) at System.Enum.TryParseInt32Enum(RuntimeType enumType, String originalValueString, ReadOnlySpan
1 value, Int32 minInclusive, Int32 maxInclusive, Boolean ignoreCase, Boolean throwOnFailure, TypeCode type, Int32& result) at System.Enum.TryParse(Type enumType, String value, Boolean ignoreCase, Boolean throwOnFailure, Object& result) at Manatee.Json.Serialization.Internal.Serializers.EnumNameSerializer.Deserialize(DeserializationContext context) at Manatee.Json.Serialization.JsonSerializer.Deserialize(DeserializationContext context) at Manatee.Json.Serialization.Internal.Serializers.NullableSerializer._Decode[T](DeserializationContext context)} Message "Exception has been thrown by the target of an invocation." Source "System.Private.CoreLib" StackTrace " at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)\n at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)\n at Manatee.Json.Serialization.JsonSerializer.Deserialize(DeserializationContext context)\n at Manatee.Json.Serialization.JsonSerializer.Deserialize(Type type, JsonValue json)\n at Manatee.Json.Serialization.JsonSerializer.Deserialize[T](JsonValue json)\n at Manatee.Trello.Json.Entities.ManateeLabel.FromJson(JsonValue json, JsonSerializer serializer)\n at Manatee.Json.Serialization.Internal.Serializers.JsonSerializableSerializer.Deserialize(DeserializationContext context)\n at Manatee.Json.Serialization.Internal.Serializers.ReferencingSerializer.TryDeserialize(ISerializer serializer, DeserializationContext context)\n at Manatee.Json.Serialization.JsonSerializer.Deserialize(DeserializationCo… TargetSite {System.Object InvokeMethod(System.Object, System.Object[], System.Signature, Boolean, Boolean)} Static members Non-Public members Message "Exception has been thrown by the target of an invocation." Source "Manatee.Trello" StackTrace " at Manatee.Trello.Internal.DataAccess.JsonRepository.ValidateResponse(IRestResponse response)\n at Manatee.Trello.Internal.DataAccess.JsonRepository.<ProcessRequest>d__71.MoveNext()\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\n at System.Runtime.CompilerServices.TaskAwaiter
1.GetResult()\n at Manatee.Trello.Internal.DataAccess.JsonRepository.<Execute>d__11.MoveNext()\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\n at System.Runtime.CompilerServices.TaskAwaiter
1.GetResult()\n at Manatee.Trello.BoardLabelCollection.<PerformRefresh>d__3.MoveNext()\n at System.Ru… TargetSite {Void ValidateResponse(Manatee.Trello.Rest.IRestResponse)} Static members Non-Public members
- .Net Target (Core 3.1)