{"action":"created","issue":{"url":"https://api.github.com/repos/object/Simple.OData.Client/issues/73","labels_url":"https://api.github.com/repos/object/Simple.OData.Client/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/object/Simple.OData.Client/issues/73/comments","events_url":"https://api.github.com/repos/object/Simple.OData.Client/issues/73/events","html_url":"https://github.com/object/Simple.OData.Client/issues/73","id":54867947,"number":73,"title":"Meaningless error on insert","user":{"login":"junker76","id":2242616,"avatar_url":"https://avatars.githubusercontent.com/u/2242616?v=3","gravatar_id":"","url":"https://api.github.com/users/junker76","html_url":"https://github.com/junker76","followers_url":"https://api.github.com/users/junker76/followers","following_url":"https://api.github.com/users/junker76/following{/other_user}","gists_url":"https://api.github.com/users/junker76/gists{/gist_id}","starred_url":"https://api.github.com/users/junker76/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junker76/subscriptions","organizations_url":"https://api.github.com/users/junker76/orgs","repos_url":"https://api.github.com/users/junker76/repos","events_url":"https://api.github.com/users/junker76/events{/privacy}","received_events_url":"https://api.github.com/users/junker76/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-01-20T10:43:30Z","updated_at":"2015-08-18T09:45:27Z","closed_at":"2015-04-23T12:12:17Z","body":"We have a very strange behaviour we are currently investigating.\r\nAt very randon times, while issuing \r\nAwait client.For(entitySetName).Set(entity).InsertEntryAsync(False)\r\nwe receive the following error:\r\n   System.AggregateException: At least one error has occurred. ---> System.Threading.Tasks.TaskCanceledException: A task has been canceled.\r\nthat does not have any detail of the reason of the fail.\r\n\r\nWe have a data sync utility that uploads to a remote server some data; there are several Insert operations done one in sequence (ie: 1000) but often the failure raises at early stage.\r\n\r\nIs there any way to obtain some extra details?\r\nThank you.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/object/Simple.OData.Client/issues/comments/132146165","html_url":"https://github.com/object/Simple.OData.Client/issues/73#issuecomment-132146165","issue_url":"https://api.github.com/repos/object/Simple.OData.Client/issues/73","id":132146165,"user":{"login":"Allann","id":2005474,"avatar_url":"https://avatars.githubusercontent.com/u/2005474?v=3","gravatar_id":"","url":"https://api.github.com/users/Allann","html_url":"https://github.com/Allann","followers_url":"https://api.github.com/users/Allann/followers","following_url":"https://api.github.com/users/Allann/following{/other_user}","gists_url":"https://api.github.com/users/Allann/gists{/gist_id}","starred_url":"https://api.github.com/users/Allann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Allann/subscriptions","organizations_url":"https://api.github.com/users/Allann/orgs","repos_url":"https://api.github.com/users/Allann/repos","events_url":"https://api.github.com/users/Allann/events{/privacy}","received_events_url":"https://api.github.com/users/Allann/received_events","type":"User","site_admin":false},"created_at":"2015-08-18T09:45:27Z","updated_at":"2015-08-18T09:45:27Z","body":"Funny thing happened to me today...  i am able to reproduce this consistently now.\r\n\r\nI believe it is due to the ReuseHttpConnection setting in ODataClientSettings.  This is false by default and when 2 async tasks (using the same client) call GetHttpClient in session, the existing httpClient is disposed, and therefore cancels the task before creating a new client to run the 2nd request.\r\n\r\nThis call to GetHttpClient does not have any exception handling and therefore bubbles the exception up to the calling code on the client."}}