Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specified cast not valid when retrieving events #263

Closed
devdigital opened this issue Dec 18, 2013 · 0 comments · Fixed by #264
Closed

Specified cast not valid when retrieving events #263

devdigital opened this issue Dec 18, 2013 · 0 comments · Fixed by #264

Comments

@devdigital
Copy link

When I run the following unit test:

[Fact]
public void Test()
{
    var github = new GitHubClient(new ProductHeaderValue("MyApp"));
    var events = github.Activity.Events.GetUserPerformed("myuser").Result;
}

I get a casting exception because the first event that is returned as JSON has an id value which contains surrounding speech marks, and when it tries to populate the integer Id property of the Activity type, the exception occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant