← 输入框|github.com|刷新
Skip to content
This repository was archived by the owner on Nov 29, 2021. It is now read-only.
This repository was archived by the owner on Nov 29, 2021. It is now read-only.

Delta call fails when entries in return from Dropbox is [<path>, null] #68

Open

Description

@Ian1971

This response indicates the path was deleted from Dropbox
I think this may actually be an issue with RestSharp not handling the null because the error occurs in the RestSharp library (JsonDeserializer.BuildList line 212). I guess json.net was handling this and they aren't.

Edit:
I've hacked a fix in RestSharp to get around it on aforementioned line by checking for null and add null to the list if it is null. I'll submit this to RestSharp as it is really their issue, but it is breaking your library.

Activity

  1. prashantvc commented on May 21, 2012

    @prashantvc

    If it not big one could you post the code here? I will try to get it working on DropNet.

  2. Ian1971 commented on May 21, 2012

    @Ian1971
    Author

    in RestSharp JsonDeserializer.BuildList(Type, object) line 212. I've changed it to
    if (element == null)
    list.Add(null);
    else
    list.Add(element.ToString());

    and it seems to work ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions