Bug: Standalone server throws 500 error when receiving concurrent requests
Hi, I'm trying to use the WireMock Net as a standalone service but when I run multiple tests in parallel which call the admin api to create or delete mappings, the server often fails with a 500 error code. Any chance to to have this fixed?
The stacktrace: System.InvalidOperationException: Collection was modified; enumeration operation may not execute. at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource) at System.Collections.Generic.List
1.Enumerator.MoveNextRare() at System.Collections.Generic.List1.Enumerator.MoveNext() at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable1 source, Func2 predicate) at WireMock.Server.FluentMockServer.RegisterMapping(Mapping mapping) at WireMock.Server.RespondWithAProvider.RespondWith(IResponseProvider provider) at WireMock.Server.FluentMockServer.DeserializeAndAddMapping(String json, Nullable`1 guid) at WireMock.Server.FluentMockServer.MappingsPost(RequestMessage requestMessage)
I will take a look.
Can you please try version 1.0.3.2 ?
You are awesome! Thanks!
Ok. Nice to hear.