-
Notifications
You must be signed in to change notification settings - Fork 1
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
System.UriFormatException: Invalid URI: The Uri string is too long #5
Comments
Hi Santosh, First reaction would be to say "Why would you need such a huge input query?", but I know this is not a very fertile answer. ;-) Can you please explain what is your query content (insert, update, select) so that I understand the need? And why it is so huge? |
Hi, insert into dbo.tablename values(param1, jsonparam2) -> json param2 is of type text length 338525 also gives same Uri exception. |
Hi, |
Hi,
Hope you are doing good.
I'm getting the below exception when my query has json data with length of 338525. Is there any alternate way to execute this.
something wrong during query Execution
errorType: 0 / reason: Invalid URI: The Uri string is too long. / httpStatusCode: OK / exception: System.UriFormatException: Invalid URI: The Uri string is too long.
at System.UriHelper.EscapeString(String input, Int32 start, Int32 end, Char[] dest, Int32& destPos, Boolean isUriString, Char force1, Char force2, Char rsvd)
at System.Uri.EscapeDataString(String stringToEscape)
at System.Net.Http.FormUrlEncodedContent.Encode(String data)
at System.Net.Http.FormUrlEncodedContent.GetContentByteArray(IEnumerable
1 nameValueCollection) at System.Net.Http.FormUrlEncodedContent..ctor(IEnumerable
1 nameValueCollection)at AceQL.Client.Src.Api.Http.HttpManager.d__21.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable
1.ConfiguredTaskAwaiter.GetResult() at AceQL.Client.Api.Http.AceQLHttpApi.<ExecuteQueryAsync>d__48.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable
1.ConfiguredTaskAwaiter.GetResult()at AceQL.Client.Api.AceQLCommand.d__17.MoveNext()
The text was updated successfully, but these errors were encountered: