Skip to content

Error: "Requested value 'memberJoinedBoard' was not found" thrown when calling TrelloFactory.Me(TrelloAuthorization auth) #363

Description

@darcythomas

Problem

For some Users calling TrelloFactory.Me(TrelloAuthorization auth) throws "Requested value 'memberJoinedBoard' was not found."

Unfortunately this is only (but consistently) affects some users.
(I can't share the specify user details here (security!!!), but if you contact me we can set up a call or something)

To Reproduce

var auth= new TrelloAuthorization { 
    AppKey = "TheOAuthKey", 
    UserToken = "The users.AccessToken"
 };

var trelloMember = await _trelloFactory.Me(auth);  // <- Internally throws  "Requested value 'memberJoinedBoard' was not found."

 await trelloMember.Boards.Refresh()
 return trelloMember.Boards: // <- this is empty when it should have values

This workaround succeeds (but requires reflection)

var auth= new TrelloAuthorization { 
    AppKey = "TheOAuthKey", 
    UserToken = "The users .AccessToken"
 };

 var id = UseReflectionToCall_Trello_Me_GetId(auth);
 Member trelloMember =  (Member)trelloFactory.Member(id, auth);

Expected behavior

Call to _trelloFactory.Me(auth); should succeed, and or fail gracefully and still allow the use of features which don't depend on 'memberJoinedBoard'

Screenshots

image

Message: Requested value 'memberJoinedBoard' was not found.

System.Enum+EnumResult.SetFailure(ParseFailureKind failure, String failureMessageID, Object failureMessageFormatArgument):36
System.Enum.TryParseEnum(Type enumType, String value, Boolean ignoreCase, EnumResult& parseResult):397
System.Enum.Parse(Type enumType, String value, Boolean ignoreCase):16
 
Manatee.Json.Serialization.Internal.Serializers.EnumNameSerializer.Deserialize(DeserializationContext context):167
Manatee.Json.Serialization.Internal.Serializers.DefaultValueSerializer.TryDeserialize(ISerializer serializer, DeserializationContext context):103
Manatee.Json.Serialization.Internal.Serializers.SchemaValidator.TryDeserialize(ISerializer serializer, DeserializationContext context):110
Manatee.Json.Serialization.JsonSerializer.Deserialize(DeserializationContext context):26
Manatee.Json.Serialization.Internal.Serializers.NullableSerializer._Decode[T](DeserializationContext context):57

Desktop (please complete the following information):

  • OS: Win 10
  • .Net Target: net4.7.2 and .net6.0
  • Version: 4.4.3

Additional context

Unfortunately this is only (but consistently) affects some users.
(I can't share the specify user details here (security!!!) but if you contact me, we can set up a call or something)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions