{"action":"created","issue":{"url":"https://api.github.com/repos/linvi/tweetinvi/issues/440","repository_url":"https://api.github.com/repos/linvi/tweetinvi","labels_url":"https://api.github.com/repos/linvi/tweetinvi/issues/440/labels{/name}","comments_url":"https://api.github.com/repos/linvi/tweetinvi/issues/440/comments","events_url":"https://api.github.com/repos/linvi/tweetinvi/issues/440/events","html_url":"https://github.com/linvi/tweetinvi/issues/440","id":201434244,"number":440,"title":"Error converting value {null} to type 'System.Int32'. Path 'retweeted_status.favorite_count',","user":{"login":"jcmag","id":7235638,"avatar_url":"https://avatars.githubusercontent.com/u/7235638?v=3","gravatar_id":"","url":"https://api.github.com/users/jcmag","html_url":"https://github.com/jcmag","followers_url":"https://api.github.com/users/jcmag/followers","following_url":"https://api.github.com/users/jcmag/following{/other_user}","gists_url":"https://api.github.com/users/jcmag/gists{/gist_id}","starred_url":"https://api.github.com/users/jcmag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcmag/subscriptions","organizations_url":"https://api.github.com/users/jcmag/orgs","repos_url":"https://api.github.com/users/jcmag/repos","events_url":"https://api.github.com/users/jcmag/events{/privacy}","received_events_url":"https://api.github.com/users/jcmag/received_events","type":"User","site_admin":false},"labels":[{"id":194118478,"url":"https://api.github.com/repos/linvi/tweetinvi/labels/bug","name":"bug","color":"fc2929","default":true},{"id":463571084,"url":"https://api.github.com/repos/linvi/tweetinvi/labels/urgent","name":"urgent","color":"b60205","default":false}],"state":"open","locked":false,"assignee":{"login":"linvi","id":6107439,"avatar_url":"https://avatars.githubusercontent.com/u/6107439?v=3","gravatar_id":"","url":"https://api.github.com/users/linvi","html_url":"https://github.com/linvi","followers_url":"https://api.github.com/users/linvi/followers","following_url":"https://api.github.com/users/linvi/following{/other_user}","gists_url":"https://api.github.com/users/linvi/gists{/gist_id}","starred_url":"https://api.github.com/users/linvi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linvi/subscriptions","organizations_url":"https://api.github.com/users/linvi/orgs","repos_url":"https://api.github.com/users/linvi/repos","events_url":"https://api.github.com/users/linvi/events{/privacy}","received_events_url":"https://api.github.com/users/linvi/received_events","type":"User","site_admin":false},"assignees":[{"login":"linvi","id":6107439,"avatar_url":"https://avatars.githubusercontent.com/u/6107439?v=3","gravatar_id":"","url":"https://api.github.com/users/linvi","html_url":"https://github.com/linvi","followers_url":"https://api.github.com/users/linvi/followers","following_url":"https://api.github.com/users/linvi/following{/other_user}","gists_url":"https://api.github.com/users/linvi/gists{/gist_id}","starred_url":"https://api.github.com/users/linvi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linvi/subscriptions","organizations_url":"https://api.github.com/users/linvi/orgs","repos_url":"https://api.github.com/users/linvi/repos","events_url":"https://api.github.com/users/linvi/events{/privacy}","received_events_url":"https://api.github.com/users/linvi/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/linvi/tweetinvi/milestones/6","html_url":"https://github.com/linvi/tweetinvi/milestone/6","labels_url":"https://api.github.com/repos/linvi/tweetinvi/milestones/6/labels","id":1391885,"number":6,"title":"Version 1.2","description":null,"creator":{"login":"linvi","id":6107439,"avatar_url":"https://avatars.githubusercontent.com/u/6107439?v=3","gravatar_id":"","url":"https://api.github.com/users/linvi","html_url":"https://github.com/linvi","followers_url":"https://api.github.com/users/linvi/followers","following_url":"https://api.github.com/users/linvi/following{/other_user}","gists_url":"https://api.github.com/users/linvi/gists{/gist_id}","starred_url":"https://api.github.com/users/linvi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linvi/subscriptions","organizations_url":"https://api.github.com/users/linvi/orgs","repos_url":"https://api.github.com/users/linvi/repos","events_url":"https://api.github.com/users/linvi/events{/privacy}","received_events_url":"https://api.github.com/users/linvi/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":33,"state":"open","created_at":"2015-11-03T17:51:32Z","updated_at":"2017-01-18T01:01:57Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2017-01-17T23:15:57Z","updated_at":"2017-01-18T05:12:05Z","closed_at":null,"body":"Hi,\r\n\r\nI've just noticed the following error on my server (running tweetinvi code for several months now):\r\n\r\n`Newtonsoft.Json.JsonSerializationException: Error converting value {null} to type 'System.Int32'. Path 'retweeted_status.favorite_count', line 1, position 3809. ---> System.InvalidCastException: Null object cannot be converted to a value type.\r\n   at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)\r\n   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType(JsonReader reader, Object value, CultureInfo culture, JsonContract contract, Type targetType)\r\n   --- End of inner exception stack trace ---\r\n   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType(JsonReader reader, Object value, CultureInfo culture, JsonContract contract, Type targetType)\r\n   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)\r\n   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)\r\n   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)\r\n   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)\r\n   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)\r\n   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)\r\n   at Newtonsoft.Json.Serialization.JsonSerializerProxy.DeserializeInternal(JsonReader reader, Type objectType)\r\n   at Newtonsoft.Json.JsonSerializer.Deserialize[T](JsonReader reader)\r\n   at Tweetinvi.Logic.JsonConverters.JsonInterfaceToObjectConverter`2.ReadJson(JsonReader reader, Type objectType, Object existingValue, JsonSerializer serializer)\r\n   at Tweetinvi.Logic.JsonConverters.JsonPropertyConverterRepository.ReadJson(JsonReader reader, Type objectType, Object existingValue, JsonSerializer serializer)\r\n   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.DeserializeConvertable(JsonConverter converter, JsonReader reader, Type objectType, Object existingValue)\r\n   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)\r\n   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)\r\n   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)\r\n   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)\r\n   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)\r\n   at Newtonsoft.Json.Serialization.JsonSerializerProxy.DeserializeInternal(JsonReader reader, Type objectType)\r\n   at Newtonsoft.Json.JsonSerializer.Deserialize[T](JsonReader reader)\r\n   at Tweetinvi.Logic.JsonConverters.JsonInterfaceToObjectConverter`2.ReadJson(JsonReader reader, Type objectType, Object existingValue, JsonSerializer serializer)\r\n   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.DeserializeConvertable(JsonConverter converter, JsonReader reader, Type objectType, Object existingValue)\r\n   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)\r\n   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)\r\n   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)\r\n   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonConverter[] converters)\r\n   at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonConverter[] converters)\r\n   at Tweetinvi.Logic.Wrapper.JsonConvertWrapper.DeserializeObject[T](String json, JsonConverter[] converters)\r\n   at Tweetinvi.Logic.JsonConverters.JsonObjectConverter.DeserializeObject[T](String json, JsonConverter[] converters)\r\n   at Tweetinvi.Factories.Tweet.TweetFactory.GenerateTweetFromJson(String jsonTweet)\r\n   at Tweetinvi.Streams.FilteredStream.<StartStreamMatchingAnyConditionAsync>b__16_1(String json)\r\n   at Tweetinvi.Streams.Helpers.StreamResultGenerator.<>c__DisplayClass20_0.<StartStreamAsync>b__0(String json)\r\n   at Tweetinvi.Streams.StreamTask.Start()`\r\n\r\nDo you know what happens there?\r\n"},"comment":{"url":"https://api.github.com/repos/linvi/tweetinvi/issues/comments/273384761","html_url":"https://github.com/linvi/tweetinvi/issues/440#issuecomment-273384761","issue_url":"https://api.github.com/repos/linvi/tweetinvi/issues/440","id":273384761,"user":{"login":"jxlarrea","id":309902,"avatar_url":"https://avatars.githubusercontent.com/u/309902?v=3","gravatar_id":"","url":"https://api.github.com/users/jxlarrea","html_url":"https://github.com/jxlarrea","followers_url":"https://api.github.com/users/jxlarrea/followers","following_url":"https://api.github.com/users/jxlarrea/following{/other_user}","gists_url":"https://api.github.com/users/jxlarrea/gists{/gist_id}","starred_url":"https://api.github.com/users/jxlarrea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jxlarrea/subscriptions","organizations_url":"https://api.github.com/users/jxlarrea/orgs","repos_url":"https://api.github.com/users/jxlarrea/repos","events_url":"https://api.github.com/users/jxlarrea/events{/privacy}","received_events_url":"https://api.github.com/users/jxlarrea/received_events","type":"User","site_admin":false},"created_at":"2017-01-18T05:12:05Z","updated_at":"2017-01-18T05:12:05Z","body":"@linvi thanks for the fix! I can confirm that it does fix the issue."}}
{"actor":{"display_login":"jxlarrea"}}