-
-
Notifications
You must be signed in to change notification settings - Fork 209
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
__admin/requests - "Collection was modified" exception #308
Comments
I'll take a look, probably I need to deep clone this collection when it's requested, so that you get a copy and not a reference. |
thanks @StefH ! |
Can you try new version from MyGet? |
Sure, I'll run it for few days and see if it happens again since it doesnt happen always.. |
Havent seen this error since the fix. |
I'll merge that PR to master and create a new NuGet. In case this happens again, please open a new issue. |
Hi,
When I accesed /__admin/requests I got the following exception:
{"Status":"{"ClassName":"System.InvalidOperationException","Message":"Collection was modified; enumeration operation may not execute.","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":" at System.Collections.Generic.List
1.Enumerator.MoveNextRare()\\r\\n at System.Linq.Enumerable.WhereSelectEnumerableIterator
2.MoveNext()\r\n at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeList(JsonWriter writer, IEnumerable values, JsonArrayContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)\r\n at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value, Type objectType)\r\n at Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value, Type objectType)\r\n at Newtonsoft.Json.JsonConvert.SerializeObjectInternal(Object value, Type type, JsonSerializer jsonSerializer)\r\n at WireMock.Server.FluentMockServer.ToJson[T](T result, Boolean keepNullValues)\r\n at WireMock.ResponseProviders.DynamicResponseProvider.ProvideResponseAsync(RequestMessage requestMessage, IFluentMockServerSettings settings)\r\n at WireMock.Mapping.ResponseToAsync(RequestMessage requestMessage)\r\n at WireMock.Owin.WireMockMiddleware.InvokeInternal(HttpContext ctx)","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2146233079,"Source":"System.Private.CoreLib","WatsonBuckets":null}"}Can you please check?
Thanks,
Greg
The text was updated successfully, but these errors were encountered: