-
-
Notifications
You must be signed in to change notification settings - Fork 213
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
Exception ArgumentOutOfRangeException #846
Comments
can you try preview version "1.5.10-ci-16658" ? (https://github.com/WireMock-Net/WireMock.Net/wiki/MyGet-preview-versions) |
{
"Status": "{\"ClassName\":\"System.ArgumentOutOfRangeException\",\"Message\":\"Index must be within the bounds of the List.\",\"Data\":null,\"InnerException\":null,\"HelpURL\":null,\"StackTraceString\":\" at System.Collections.Generic.List`1.Insert(Int32 index, T item)\\r\\n at System.Collections.ObjectModel.Collection`1.InsertItem(Int32 index, T item)\\r\\n at System.Collections.ObjectModel.ObservableCollection`1.InsertItem(Int32 index, T item)\\r\\n at WireMock.Util.ConcurrentObservableCollection`1.InsertItem(Int32 index, T item)\\r\\n at WireMock.Owin.WireMockMiddleware.LogRequest(LogEntry entry, Boolean addRequest)\\r\\n at WireMock.Owin.WireMockMiddleware.InvokeInternalAsync(HttpContext ctx)\\r\\n at WireMock.Owin.GlobalExceptionMiddleware.InvokeInternalAsync(HttpContext ctx)\",\"RemoteStackTraceString\":null,\"RemoteStackIndex\":0,\"ExceptionMethod\":null,\"HResult\":-2146233086,\"Source\":\"System.Private.CoreLib\",\"WatsonBuckets\":null,\"ParamName\":\"index\",\"ActualValue\":null}"
} Maybe we need to add try-catch when adding log also. |
New preview version:
Can you try this? |
Preview version @arihantjain0894 can you test this version? |
Shouldn't we do the same(condition) when removing from the log also? |
Ok. |
latest version is 16669 |
Worked fine. Thanks for the fix. |
New official version will be released shortly. |
Hi, I am getting the following exception:
Settings:
"MaxRequestLogCount": 0
"CustomDelay": 5000 ms
Version: 1.5.3
Usage: System stress testing.
When i increase the MaxRequestLogCount to let say 20, this is less frequent.
Also making custom delay to 0 fixes this.
The text was updated successfully, but these errors were encountered: