{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-sdk-net/issues/320","repository_url":"https://api.github.com/repos/aws/aws-sdk-net","labels_url":"https://api.github.com/repos/aws/aws-sdk-net/issues/320/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-sdk-net/issues/320/comments","events_url":"https://api.github.com/repos/aws/aws-sdk-net/issues/320/events","html_url":"https://github.com/aws/aws-sdk-net/issues/320","id":140228341,"number":320,"title":"Unhandled ProvisionedThroughputExceededException crashing Mono server","user":{"login":"foliba","id":164719,"avatar_url":"https://avatars.githubusercontent.com/u/164719?v=3","gravatar_id":"","url":"https://api.github.com/users/foliba","html_url":"https://github.com/foliba","followers_url":"https://api.github.com/users/foliba/followers","following_url":"https://api.github.com/users/foliba/following{/other_user}","gists_url":"https://api.github.com/users/foliba/gists{/gist_id}","starred_url":"https://api.github.com/users/foliba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foliba/subscriptions","organizations_url":"https://api.github.com/users/foliba/orgs","repos_url":"https://api.github.com/users/foliba/repos","events_url":"https://api.github.com/users/foliba/events{/privacy}","received_events_url":"https://api.github.com/users/foliba/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aws/aws-sdk-net/labels/Information%20Requested","name":"Information Requested","color":"eb6420"},{"url":"https://api.github.com/repos/aws/aws-sdk-net/labels/Question","name":"Question","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-03-11T16:28:12Z","updated_at":"2016-04-05T00:42:18Z","closed_at":null,"body":"When running multiple stress tests (locally on windows and on our Mono servers) we encountered an unhandled ProvisionedThroughputExceededException when writing to our DynamoDB.\r\nEven having a try catch around the SDK call, the exception isn't handled.\r\n\r\nThis unhandled exception seems to crash our Mono server.\r\n\r\n- AWSSDK version: 2.3.52.0\r\n- .NET runtime: 4.5\r\n- Mono 4.2.1\r\n\r\n\r\nStackTrace:\r\n```\r\nat Amazon.Runtime.Internal.HttpRequest.GetResponse() in d:\\Jenkins\\jobs\\build-sdkandtools-release\\workspace\\sdk\\src\\AWSSDK_DotNet35\\Amazon.Runtime\\Pipeline\\HttpHandler\\HttpWebRequestFactory.cs:line 114\r\n  at Amazon.Runtime.Internal.HttpHandler`1.InvokeSync(IExecutionContext executionContext) in d:\\Jenkins\\jobs\\build-sdkandtools-release\\workspace\\sdk\\src\\AWSSDK_DotNet35\\Amazon.Runtime\\Pipeline\\HttpHandler\\HttpHandler.cs:line 84\r\n  at Amazon.Runtime.Internal.PipelineHandler.InvokeSync(IExecutionContext executionContext) in d:\\Jenkins\\jobs\\build-sdkandtools-release\\workspace\\sdk\\src\\AWSSDK_DotNet35\\Amazon.Runtime\\Pipeline\\PipelineHandler.cs:line 57\r\n  at Amazon.Runtime.Internal.Unmarshaller.InvokeSync(IExecutionContext executionContext) in d:\\Jenkins\\jobs\\build-sdkandtools-release\\workspace\\sdk\\src\\AWSSDK_DotNet35\\Amazon.Runtime\\Pipeline\\Handlers\\Unmarshaller.cs:line 48\r\n  at Amazon.Runtime.Internal.PipelineHandler.InvokeSync(IExecutionContext executionContext) in d:\\Jenkins\\jobs\\build-sdkandtools-release\\workspace\\sdk\\src\\AWSSDK_DotNet35\\Amazon.Runtime\\Pipeline\\PipelineHandler.cs:line 57\r\n  at Amazon.Runtime.Internal.ErrorHandler.InvokeSync(IExecutionContext executionContext) in d:\\Jenkins\\jobs\\build-sdkandtools-release\\workspace\\sdk\\src\\AWSSDK_DotNet35\\Amazon.Runtime\\Pipeline\\ErrorHandler\\ErrorHandler.cs:line 70\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/aws/aws-sdk-net/issues/comments/205561527","html_url":"https://github.com/aws/aws-sdk-net/issues/320#issuecomment-205561527","issue_url":"https://api.github.com/repos/aws/aws-sdk-net/issues/320","id":205561527,"user":{"login":"PavelSafronov","id":1359724,"avatar_url":"https://avatars.githubusercontent.com/u/1359724?v=3","gravatar_id":"","url":"https://api.github.com/users/PavelSafronov","html_url":"https://github.com/PavelSafronov","followers_url":"https://api.github.com/users/PavelSafronov/followers","following_url":"https://api.github.com/users/PavelSafronov/following{/other_user}","gists_url":"https://api.github.com/users/PavelSafronov/gists{/gist_id}","starred_url":"https://api.github.com/users/PavelSafronov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PavelSafronov/subscriptions","organizations_url":"https://api.github.com/users/PavelSafronov/orgs","repos_url":"https://api.github.com/users/PavelSafronov/repos","events_url":"https://api.github.com/users/PavelSafronov/events{/privacy}","received_events_url":"https://api.github.com/users/PavelSafronov/received_events","type":"User","site_admin":false},"created_at":"2016-04-05T00:42:18Z","updated_at":"2016-04-05T00:42:18Z","body":"Thanks for the repo.\r\n\r\nRunning the code locally on Windows, I am able to see the exception dialog (\"ProvisionedThroughputExceededException was unhandled by user code\"), though this does not crash the IIS server. Is this the same behavior you are seeing?\r\n\r\nHow are you running this code on Mono?\r\n\r\nWe're not sure why this is happening yet, but one way to avoid the exception seems to be to use the client. For instance, you can replace the ```context.SaveAsync...``` call with\r\n```\r\nawait client.PutItemAsync(\r\n    context.GetTargetTable<T>().TableName,\r\n    context.ToDocument(entity).ToAttributeMap()).ConfigureAwait(false);\r\n```"}}