Exception ArgumentOutOfRangeException
See original GitHub issueHi, I am getting the following exception:
System.ArgumentOutOfRangeException
Message: Index was out of range. Must be non-negative and less than the size of the collection.
InnerException: null
StackTraceString: at System.Collections.Generic.List`1.get_Item(Int32 index)
at System.Collections.ObjectModel.ObservableCollection`1.RemoveItem(Int32 index)
at WireMock.Owin.WireMockMiddleware.LogRequest(LogEntry entry, Boolean addRequest)
at WireMock.Owin.WireMockMiddleware.InvokeInternalAsync(HttpContext ctx)
at WireMock.Owin.GlobalExceptionMiddleware.InvokeInternalAsync(HttpContext ctx)
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.
Issue Analytics
- State:
- Created 10 months ago
- Comments:11
Top Results From Across the Web
ArgumentOutOfRangeException Class (System)
An ArgumentOutOfRangeException exception is thrown when a method is invoked and at least one of the arguments passed to the method is not...
Read more >C# Exception Guide: ArgumentOutOfRangeException
The ArgumentOutOfRangeException exception is thrown when the argument passed to a method is not null and contains a value that is not within ......
Read more >ArgumentOutOfRangeException Constructor (System)
Initializes a new instance of the ArgumentOutOfRangeException class with the parameter name, the value of the argument, and a specified error message.
Read more >I get an exception System.ArgumentOutOfRangeException
The exception implies there are no items in the collection. In this scenario, the TextUpdate event clears the ComboBox items and the ...
Read more >ArgumentOutOfRangeException in C# with Examples
In c#, ArgumentOutOfRangeException is an exception that will occur when the value of an argument falls outside the allowable range of values ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Preview version
16667does also have extra logic --> do not add an entry at all if the MaxRequestLogCount is set to 0.@arihantjain0894 can you test this version?
Maybe we need to add try-catch when adding log also.