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.AggregateException #18

Closed
MaherJendoubi opened this Issue Dec 18, 2018 · 26 comments

Comments

Projects
None yet
3 participants
@MaherJendoubi
Copy link

MaherJendoubi commented Dec 18, 2018

We are continuously addressing and improving the SDK, if possible, make sure the problem persist in the latest SDK version.

Describe the bug
I described the bug in a blog post: A strange bug in Azure Cosmos DB SQL API account (SDK Version 3 Preview)

To Reproduce
Steps to reproduce the behavior. If you can include code snippets or links to repositories containing a repro of the issue that can help us in detecting the scenario it would speed up the resolution.

Expected behavior
A clear and concise description of what you expected to happen.

Actual behavior
Error: System.AggregateException: One or more errors occurred. (Exception has been thrown by the target of an invocation.) ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.FormatException: Input string was not in a correct format.
at System.Number.ThrowOverflowOrFormatException(Boolean overflow, String overflowResourceKey)
at System.Double.Parse(String s)
at Microsoft.Azure.Cosmos.CosmosResponseMessageHeaders.set__requestCharge(String value)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)
at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, Object[] index)
at Microsoft.Azure.Cosmos.CosmosResponseMessageHeaders.<>c__DisplayClass43_0.b__3(String value)
at Microsoft.Azure.Cosmos.CosmosCustomHeader.Set(String value)
at Microsoft.Azure.Cosmos.CosmosMessageHeadersInternal.Add(String headerName, String value)
at Microsoft.Azure.Cosmos.CosmosMessageHeadersBase.Add(String headerName, String value)
at Microsoft.Azure.Cosmos.Extensions.ToCosmosResponseMessage(DocumentServiceResponse response, CosmosRequestMessage requestMessage)
at Microsoft.Azure.Cosmos.Handlers.TransportHandler.SendAsync(CosmosRequestMessage request, CancellationToken cancellationToken)
at Microsoft.Azure.Cosmos.Handlers.AbstractRetryHandler.ExecuteHttpRequestAsync(Func1 callbackMethod, Func3 callShouldRetry, Func3 callShouldRetryException, CancellationToken cancellationToken) at Microsoft.Azure.Cosmos.Handlers.AbstractRetryHandler.SendAsync(CosmosRequestMessage request, CancellationToken cancellationToken) --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification)
at Microsoft.Azure.Cosmos.ExecUtils.<>c__DisplayClass3_01.b__0(Task1 task)
at System.Threading.Tasks.ContinuationResultTaskFromResultTask2.InnerInvoke() at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location where exception was thrown --- at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location where exception was thrown --- at CosmosGettingStartedDotnetCoreTutorial.Program.ReplaceFamilyItem() in D:\CosmosGettingStartedDotnetCoreTutorial\CosmosGettingStartedDotnetCoreTutorial\Program.cs:line 210 at CosmosGettingStartedDotnetCoreTutorial.Program.GetStartedDemoAsync() in D:\CosmosGettingStartedDotnetCoreTutorial\CosmosGettingStartedDotnetCoreTutorial\Program.cs:line 75 at CosmosGettingStartedDotnetCoreTutorial.Program.Main(String[] args) in D:\CosmosGettingStartedDotnetCoreTutorial\CosmosGettingStartedDotnetCoreTutorial\Program.cs:line 30 ---> (Inner Exception #0) System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.FormatException: Input string was not in a correct format. at System.Number.ThrowOverflowOrFormatException(Boolean overflow, String overflowResourceKey) at System.Double.Parse(String s) at Microsoft.Azure.Cosmos.CosmosResponseMessageHeaders.set__requestCharge(String value) --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture) at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, Object[] index) at Microsoft.Azure.Cosmos.CosmosResponseMessageHeaders.<>c__DisplayClass43_0.b__3(String value) at Microsoft.Azure.Cosmos.CosmosCustomHeader.Set(String value) at Microsoft.Azure.Cosmos.CosmosMessageHeadersInternal.Add(String headerName, String value) at Microsoft.Azure.Cosmos.CosmosMessageHeadersBase.Add(String headerName, String value) at Microsoft.Azure.Cosmos.Extensions.ToCosmosResponseMessage(DocumentServiceResponse response, CosmosRequestMessage requestMessage) at Microsoft.Azure.Cosmos.Handlers.TransportHandler.SendAsync(CosmosRequestMessage request, CancellationToken cancellationToken) at Microsoft.Azure.Cosmos.Handlers.AbstractRetryHandler.ExecuteHttpRequestAsync(Func1 callbackMethod, Func3 callShouldRetry, Func3 callShouldRetryException, CancellationToken cancellationToken)
at Microsoft.Azure.Cosmos.Handlers.AbstractRetryHandler.SendAsync(CosmosRequestMessage request, CancellationToken cancellationToken)<---

End of demo, press any key to exit

Environment summary
SDK Version: 3.0.0.1-preview
OS Version (e.g. Windows, Linux, MacOSX): Windows 10 Version 809

Additional context
Add any other context about the problem here (for example, complete stack traces or logs).

@ealsur

This comment has been minimized.

Copy link
Contributor

ealsur commented Dec 20, 2018

@MaherJendoubi Is your application running dotnet Core or full framework? Which version?

@MaherJendoubi

This comment has been minimized.

Copy link
Author

MaherJendoubi commented Dec 20, 2018

@ealsur it's running .NET Core 3.0 Preview 1 version.

@ealsur

This comment has been minimized.

Copy link
Contributor

ealsur commented Dec 20, 2018

@MaherJendoubi I created a Net Core 3.0 project here https://github.com/ealsur/cosmosv3sample and it works using the credentials of a live account, I went through the tutorial as your post describes. Do you have a repo you can share that is experiencing the issue?

@MaherJendoubi

This comment has been minimized.

Copy link
Author

MaherJendoubi commented Dec 20, 2018

@ealsur I run your sample. This is what I get :

Created Database: FamilyDatabase

Created Container: FamilyContainer

The thread 14916 has exited with code 0 (0x0).
Item in database with id: Andersen.1 already exists

Item in database with id: Wakefield.7 already exists

Running query: SELECT * FROM c WHERE c.LastName = 'Andersen'

Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.0.0-preview-27122-01\Microsoft.CSharp.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
Read {"id":"Andersen.1","LastName":"Andersen","Parents":[{"FamilyName":null,"FirstName":"Thomas"},{"FamilyName":null,"FirstName":"Mary Kay"}],"Children":[{"FamilyName":null,"FirstName":"Henriette Thaulow","Gender":"female","Grade":5,"Pets":[{"GivenName":"Fluffy"}]}],"Address":{"State":"WA","County":"King","City":"Seattle"},"IsRegistered":true}

The thread 9664 has exited with code 0 (0x0).
Exception thrown: 'System.AggregateException' in System.Private.CoreLib.dll
Exception thrown: 'System.AggregateException' in System.Private.CoreLib.dll
Exception thrown: 'System.AggregateException' in System.Private.CoreLib.dll
Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.0.0-preview-27122-01\System.Diagnostics.StackTrace.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.0.0-preview-27122-01\System.Reflection.Metadata.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.0.0-preview-27122-01\System.Collections.Immutable.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
Error: System.AggregateException: One or more errors occurred. (Exception has been thrown by the target of an invocation.) ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.FormatException: Input string was not in a correct format.

at System.Number.ThrowOverflowOrFormatException(Boolean overflow, String overflowResourceKey)

at System.Double.Parse(String s)

at Microsoft.Azure.Cosmos.CosmosResponseMessageHeaders.set__requestCharge(String value)

--- End of inner exception stack trace ---

at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)

at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, Object[] index)

at Microsoft.Azure.Cosmos.CosmosResponseMessageHeaders.<>c__DisplayClass43_0.b__3(String value)

at Microsoft.Azure.Cosmos.CosmosCustomHeader.Set(String value)

at Microsoft.Azure.Cosmos.CosmosMessageHeadersInternal.Add(String headerName, String value)

at Microsoft.Azure.Cosmos.CosmosMessageHeadersBase.Add(String headerName, String value)

at Microsoft.Azure.Cosmos.Extensions.ToCosmosResponseMessage(DocumentServiceResponse response, CosmosRequestMessage requestMessage)

at Microsoft.Azure.Cosmos.Handlers.TransportHandler.SendAsync(CosmosRequestMessage request, CancellationToken cancellationToken)

at Microsoft.Azure.Cosmos.Handlers.AbstractRetryHandler.ExecuteHttpRequestAsync(Func1 callbackMethod, Func3 callShouldRetry, Func`3 callShouldRetryException, CancellationToken cancellationToken)

at Microsoft.Azure.Cosmos.Handlers.AbstractRetryHandler.SendAsync(CosmosRequestMessage request, CancellationToken cancellationToken)

--- End of inner exception stack trace ---

at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)

at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)

at Microsoft.Azure.Cosmos.ExecUtils.<>c__DisplayClass3_01.<ProcessResourceOperationAsync>b__0(Task1 task)

at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()

at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)

--- End of stack trace from previous location where exception was thrown ---

at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)

--- End of stack trace from previous location where exception was thrown ---

at ConsoleApp1.Program.ReplaceFamilyItem() in C:\Users\M_Jendoubi\Documents\GitHub\cosmosv3sample\Program.cs:line 99

at ConsoleApp1.Program.GetStartedDemoAsync() in C:\Users\M_Jendoubi\Documents\GitHub\cosmosv3sample\Program.cs:line 51

at ConsoleApp1.Program.Main(String[] args) in C:\Users\M_Jendoubi\Documents\GitHub\cosmosv3sample\Program.cs:line 260

---> (Inner Exception #0) System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.FormatException: Input string was not in a correct format.

at System.Number.ThrowOverflowOrFormatException(Boolean overflow, String overflowResourceKey)

at System.Double.Parse(String s)

at Microsoft.Azure.Cosmos.CosmosResponseMessageHeaders.set__requestCharge(String value)

--- End of inner exception stack trace ---

at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)

at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, Object[] index)

at Microsoft.Azure.Cosmos.CosmosResponseMessageHeaders.<>c__DisplayClass43_0.b__3(String value)

at Microsoft.Azure.Cosmos.CosmosCustomHeader.Set(String value)

at Microsoft.Azure.Cosmos.CosmosMessageHeadersInternal.Add(String headerName, String value)

at Microsoft.Azure.Cosmos.CosmosMessageHeadersBase.Add(String headerName, String value)

at Microsoft.Azure.Cosmos.Extensions.ToCosmosResponseMessage(DocumentServiceResponse response, CosmosRequestMessage requestMessage)

at Microsoft.Azure.Cosmos.Handlers.TransportHandler.SendAsync(CosmosRequestMessage request, CancellationToken cancellationToken)

at Microsoft.Azure.Cosmos.Handlers.AbstractRetryHandler.ExecuteHttpRequestAsync(Func1 callbackMethod, Func3 callShouldRetry, Func`3 callShouldRetryException, CancellationToken cancellationToken)

at Microsoft.Azure.Cosmos.Handlers.AbstractRetryHandler.SendAsync(CosmosRequestMessage request, CancellationToken cancellationToken)<---

End of demo, press any key to exit.

Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.0.0-preview-27122-01\System.Resources.ResourceManager.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
Exception thrown: 'System.InvalidOperationException' in System.Console.dll

@ealsur

This comment has been minimized.

Copy link
Contributor

ealsur commented Dec 20, 2018

@MaherJendoubi Is this to a live account or the Emulator?

@MaherJendoubi

This comment has been minimized.

Copy link
Author

MaherJendoubi commented Dec 20, 2018

@ealsur It is a live account.

@MaherJendoubi

This comment has been minimized.

Copy link
Author

MaherJendoubi commented Dec 20, 2018

@ealsur How can we troubleshoot this issue?

@ealsur

This comment has been minimized.

Copy link
Contributor

ealsur commented Dec 20, 2018

@MaherJendoubi It seems from the stacktrace that some header does not have a valid value, although I'm not sure how using NET Core 3 might generate it.
If you switch to NET Core 2.1, does it repro? Since NET Core 3 is preview, we have not tested it.

@MaherJendoubi

This comment has been minimized.

Copy link
Author

MaherJendoubi commented Dec 20, 2018

@ealsur I am switching to .NET Core 2.2

λ dotnet --list-sdks
2.1.200 [C:\Program Files\dotnet\sdk]
2.1.201 [C:\Program Files\dotnet\sdk]
2.1.202 [C:\Program Files\dotnet\sdk]
2.1.300 [C:\Program Files\dotnet\sdk]
2.1.400 [C:\Program Files\dotnet\sdk]
2.1.401 [C:\Program Files\dotnet\sdk]
2.1.402 [C:\Program Files\dotnet\sdk]
2.1.403 [C:\Program Files\dotnet\sdk]
2.1.500 [C:\Program Files\dotnet\sdk]
2.1.600-preview-009426 [C:\Program Files\dotnet\sdk]
2.2.100 [C:\Program Files\dotnet\sdk]
3.0.100-preview-009812 [C:\Program Files\dotnet\sdk]

@MaherJendoubi

This comment has been minimized.

Copy link
Author

MaherJendoubi commented Dec 20, 2018

@ealsur same error with .NET Core 2.2

@MaherJendoubi

This comment has been minimized.

Copy link
Author

MaherJendoubi commented Dec 20, 2018

@ealsur it also repro with .NET Core 2.1

@ealsur

This comment has been minimized.

Copy link
Contributor

ealsur commented Dec 20, 2018

Could you share a Read-Only key for that account and account name to maquaran at microsoft.com? I want to test and see what is the response coming from the account that has an invalid request charge.

@MaherJendoubi

This comment has been minimized.

Copy link
Author

MaherJendoubi commented Dec 20, 2018

@ealsur done.

@MaherJendoubi

This comment has been minimized.

Copy link
Author

MaherJendoubi commented Dec 20, 2018

@ealsur FYI, I am using France Central region.

@ealsur

This comment has been minimized.

Copy link
Contributor

ealsur commented Dec 21, 2018

We synced and it seems its affecting only one machine, the same code runs in another VM.

@MaherJendoubi

This comment has been minimized.

Copy link
Author

MaherJendoubi commented Dec 21, 2018

The same code runs in the VM hosted in my machine but does not on my machine. I keep investigations using Fiddler and Wireshark to know the root cause of this issue. With Fiddler, we notice the direct effect which is that the requests are missing headers.

@larserikfinholt

This comment has been minimized.

Copy link

larserikfinholt commented Dec 25, 2018

I've got the same problem. Tried to run a few times, it crashed in different steps. After deleting the db, this is what I get (using emulator v2.1.3.0, tried with dotnetcore 2.0, 2.1 and 2.2):

`Beginning operations...

Error: System.AggregateException: One or more errors occurred. (Exception has been thrown by the target of an invocation.) ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.FormatException: Input string was not in a correct format.
at System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt)
at Microsoft.Azure.Cosmos.CosmosResponseMessageHeaders.set__requestCharge(String value)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)
at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, Object[] index)
at Microsoft.Azure.Cosmos.CosmosMessageHeadersInternal.Add(String headerName, String value)
at Microsoft.Azure.Cosmos.Extensions.ToCosmosResponseMessage(DocumentServiceResponse response, CosmosRequestMessage requestMessage)
at Microsoft.Azure.Cosmos.Handlers.TransportHandler.d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Azure.Cosmos.Handlers.AbstractRetryHandler.d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Azure.Cosmos.Handlers.AbstractRetryHandler.d__1.MoveNext()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification) at Microsoft.Azure.Cosmos.ExecUtils.<>c__DisplayClass3_01.b__0(Task1 task) at System.Threading.Tasks.ContinuationResultTaskFromResultTask2.InnerInvoke()
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Azure.Cosmos.CosmosDatabases.d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() at CosmosGettingStartedDotnetCoreTutorial.Program.<CreateDatabase>d__9.MoveNext() in C:\Projects\CosmosDbSamples\cosmos-dotnet-core-getting-started\CosmosGettingStartedDotnetCoreTutorial\Program.cs:line 74 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at CosmosGettingStartedDotnetCoreTutorial.Program.<GetStartedDemoAsync>d__8.MoveNext() in C:\Projects\CosmosDbSamples\cosmos-dotnet-core-getting-started\CosmosGettingStartedDotnetCoreTutorial\Program.cs:line 59 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at CosmosGettingStartedDotnetCoreTutorial.Program.<Main>d__7.MoveNext() in C:\Projects\CosmosDbSamples\cosmos-dotnet-core-getting-started\CosmosGettingStartedDotnetCoreTutorial\Program.cs:line 34 ---> (Inner Exception #0) System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.FormatException: Input string was not in a correct format. at System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt) at Microsoft.Azure.Cosmos.CosmosResponseMessageHeaders.set__requestCharge(String value) --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture) at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, Object[] index) at Microsoft.Azure.Cosmos.CosmosMessageHeadersInternal.Add(String headerName, String value) at Microsoft.Azure.Cosmos.Extensions.ToCosmosResponseMessage(DocumentServiceResponse response, CosmosRequestMessage requestMessage) at Microsoft.Azure.Cosmos.Handlers.TransportHandler.<SendAsync>d__2.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Azure.Cosmos.Handlers.AbstractRetryHandler.<ExecuteHttpRequestAsync>d__2.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Azure.Cosmos.Handlers.AbstractRetryHandler.<SendAsync>d__1.MoveNext()<---

@ealsur

This comment has been minimized.

Copy link
Contributor

ealsur commented Dec 26, 2018

@larserikfinholt @MaherJendoubi Could you confirm if in the environment you are facing the issue, the culture is set to use a different decimal separator? Trying to confirm if what I found is related to your scenario.

@MaherJendoubi

This comment has been minimized.

Copy link
Author

MaherJendoubi commented Dec 26, 2018

@ealsur How to know it?

@MaherJendoubi

This comment has been minimized.

Copy link
Author

MaherJendoubi commented Dec 26, 2018

@ealsur My Laptop is a French OS while my on-prem VM and my Azure VM are English OS.

@ealsur

This comment has been minimized.

Copy link
Contributor

ealsur commented Dec 26, 2018

Was able to repro when setting Region to France, thanks @MaherJendoubi

@ealsur ealsur added the bug label Dec 26, 2018

@MaherJendoubi

This comment has been minimized.

Copy link
Author

MaherJendoubi commented Dec 26, 2018

@ealsur That's great! Thanks Matias.

@MaherJendoubi

This comment has been minimized.

Copy link
Author

MaherJendoubi commented Dec 26, 2018

@ealsur How did you find out that it may be a Culture problem?

@ealsur

This comment has been minimized.

Copy link
Contributor

ealsur commented Dec 26, 2018

@MaherJendoubi Just thinking about the code path, the exception and the fact that it was working in a VM, I guess it just was an idea and I tried and was able to repro, but was not sure your case was the same 😄

@ealsur

This comment has been minimized.

Copy link
Contributor

ealsur commented Dec 26, 2018

@MaherJendoubi The fix was merged and will be included in the next preview release

@ealsur ealsur closed this Dec 26, 2018

@MaherJendoubi

This comment has been minimized.

Copy link
Author

MaherJendoubi commented Dec 26, 2018

@ealsur where can I see the fix code?

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