Skip to content
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

Bug: Standalone server throws 500 error when receiving concurrent requests #88

Closed
FSatmar opened this issue Feb 14, 2018 · 4 comments
Closed
Assignees
Labels

Comments

@FSatmar
Copy link

FSatmar commented Feb 14, 2018

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.List1.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)

@StefH StefH self-assigned this Feb 14, 2018
@StefH StefH added the bug label Feb 14, 2018
@StefH
Copy link
Collaborator

StefH commented Feb 14, 2018

I will take a look.

StefH added a commit that referenced this issue Feb 14, 2018
* concurrent

* uni tests
@StefH
Copy link
Collaborator

StefH commented Feb 14, 2018

Can you please try version 1.0.3.2 ?

@StefH StefH closed this as completed Feb 14, 2018
@FSatmar
Copy link
Author

FSatmar commented Feb 15, 2018

You are awesome! Thanks!

@StefH
Copy link
Collaborator

StefH commented Feb 15, 2018

Ok. Nice to hear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants