-
-
Notifications
You must be signed in to change notification settings - Fork 201
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
CreatePost() Exception #263
Labels
Comments
mozts2005
added a commit
that referenced
this issue
Jan 26, 2017
Merged
mozts2005
added a commit
that referenced
this issue
Jan 26, 2017
* Changed all public properties to from int to long per docs https://developer.zendesk.com/rest_api/docs/core/introduction#id-integers fixed #263, fixed #262 * updated version number * fixing double build * adding notification to build * change notification
mozts2005
added a commit
that referenced
this issue
Jan 26, 2017
* Changed all public properties to from int to long per docs https://developer.zendesk.com/rest_api/docs/core/introduction#id-integers fixed #263, fixed #262 * updated version number * fixing double build * adding notification to build * change notification * fix build number * file clean up
mozts2005
added a commit
that referenced
this issue
Mar 9, 2017
* Changed all public properties to from int to long per docs https://developer.zendesk.com/rest_api/docs/core/introduction#id-integers fixed #263, fixed #262 * updated version number * fixing double build * adding notification to build * change notification * fix build number * file clean up * Updating release notes
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When attempting to add a post with
HelpCenter.Posts.CreatePost()
the following exception is thrown: "JSON integer 1234567897 is too large or small for an Int32. Path 'post.author_id', line 1, position 3823." It appears the post model object's AuthorID property is of type int but it is trying to use the Zendesk user ID which is long.Stack Trace:
" at Newtonsoft.Json.JsonTextReader.ParseNumber(ReadType readType)\r\n at Newtonsoft.Json.JsonTextReader.ReadNumberValue(ReadType readType)\r\n at Newtonsoft.Json.JsonTextReader.ReadAsInt32()\r\n at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType(JsonReader reader, JsonContract contract, Boolean hasConverter)\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.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.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[T](String value, JsonSerializerSettings settings)\r\n at ZendeskApi_v2.Core.RunRequest[T](String resource, String requestMethod, Object body, Nullable`1 timeout, String formKey)\r\n at ZendeskApi_v2.Core.GenericPost[T](String resource, Object body)\r\n at ZendeskApi_v2.Requests.HelpCenter.Posts.CreatePost(Post post)\r\n at ZendeskForumPostImport.ForumService.ImportPosts() in c:\Users\Visual Studio 2015\Projects\ForumService.cs:line 66"
The text was updated successfully, but these errors were encountered: