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

Concurrency problems with connection statistics #33

Closed
JornWildt opened this issue Nov 8, 2016 · 0 comments
Closed

Concurrency problems with connection statistics #33

JornWildt opened this issue Nov 8, 2016 · 0 comments

Comments

@JornWildt
Copy link
Owner

Got this error:

Unhandled exception 1 while handling message with ID 30385ed0-dc40-4f28-b86f-fa61bc49f2f2: System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at System.Collections.Generic.Dictionary`2.set_Item(TKey key, TValue value)
   at Ramone.ConnectionStatistics.RegisterConnection(HttpWebResponse response) in c:\Projects\Ramone\Ramone\ConnectionStatistics.cs:line 29
   at Ramone.BaseRequest.HandleResponse(HttpWebResponse response, String method, Boolean includeBody, Action`1 requestModifier, Int32 retryLevel) in c:\Projects\Ramone\Ramone\BaseRequest.cs:line 358
   at Ramone.BaseRequest.DoRequest(Uri url, String method, Boolean includeBody, Action`1 requestModifier, Int32 retryLevel) in c:\Projects\Ramone\Ramone\BaseRequest.cs:line 184
   at Ramone.BaseRequest.DoRequest[TResponse](String method, Int32 retryLevel) in c:\Projects\Ramone\Ramone\BaseRequest.cs:line 165
   at Ramone.Request.Post[TResponse](Object body) in c:\Projects\Ramone\Ramone\Request.cs:line 262
   at Ramone.OAuth2.OAuth2Extensions.GetAndStoreAccessToken(ISession session, Object args, Boolean useAccessToken) in c:\Projects\Ramone\Ramone\OAuth2\OAuth2Extensions.cs:line 361
   at Ramone.OAuth2.OAuth2Extensions.OAuth2_GetAccessTokenUsingOwnerUsernamePassword(ISession session, String ownerUserName, String ownerPassword, String scope, Boolean useAccessToken) in c:\Projects\Ramone\Ramone\OAuth2\OAuth2Extensions.cs:line 158

See for instance https://soemoetunlwin.wordpress.com/2010/06/11/indexoutofrangeexception-in-dictionary-insert-method/

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

No branches or pull requests

1 participant