{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-functions-host/issues/1235","repository_url":"https://api.github.com/repos/Azure/azure-functions-host","labels_url":"https://api.github.com/repos/Azure/azure-functions-host/issues/1235/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-functions-host/issues/1235/comments","events_url":"https://api.github.com/repos/Azure/azure-functions-host/issues/1235/events","html_url":"https://github.com/Azure/azure-functions-host/issues/1235","id":210167023,"number":1235,"title":"Errors unreadable when Exceptions thrown","user":{"login":"ctaggart","id":80104,"avatar_url":"https://avatars2.githubusercontent.com/u/80104?v=4","gravatar_id":"","url":"https://api.github.com/users/ctaggart","html_url":"https://github.com/ctaggart","followers_url":"https://api.github.com/users/ctaggart/followers","following_url":"https://api.github.com/users/ctaggart/following{/other_user}","gists_url":"https://api.github.com/users/ctaggart/gists{/gist_id}","starred_url":"https://api.github.com/users/ctaggart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctaggart/subscriptions","organizations_url":"https://api.github.com/users/ctaggart/orgs","repos_url":"https://api.github.com/users/ctaggart/repos","events_url":"https://api.github.com/users/ctaggart/events{/privacy}","received_events_url":"https://api.github.com/users/ctaggart/received_events","type":"User","site_admin":false},"labels":[{"id":542023025,"url":"https://api.github.com/repos/Azure/azure-functions-host/labels/reliability","name":"reliability","color":"5319e7","default":false}],"state":"closed","locked":false,"assignee":{"login":"fabiocav","id":2507935,"avatar_url":"https://avatars2.githubusercontent.com/u/2507935?v=4","gravatar_id":"","url":"https://api.github.com/users/fabiocav","html_url":"https://github.com/fabiocav","followers_url":"https://api.github.com/users/fabiocav/followers","following_url":"https://api.github.com/users/fabiocav/following{/other_user}","gists_url":"https://api.github.com/users/fabiocav/gists{/gist_id}","starred_url":"https://api.github.com/users/fabiocav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabiocav/subscriptions","organizations_url":"https://api.github.com/users/fabiocav/orgs","repos_url":"https://api.github.com/users/fabiocav/repos","events_url":"https://api.github.com/users/fabiocav/events{/privacy}","received_events_url":"https://api.github.com/users/fabiocav/received_events","type":"User","site_admin":false},"assignees":[{"login":"fabiocav","id":2507935,"avatar_url":"https://avatars2.githubusercontent.com/u/2507935?v=4","gravatar_id":"","url":"https://api.github.com/users/fabiocav","html_url":"https://github.com/fabiocav","followers_url":"https://api.github.com/users/fabiocav/followers","following_url":"https://api.github.com/users/fabiocav/following{/other_user}","gists_url":"https://api.github.com/users/fabiocav/gists{/gist_id}","starred_url":"https://api.github.com/users/fabiocav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabiocav/subscriptions","organizations_url":"https://api.github.com/users/fabiocav/orgs","repos_url":"https://api.github.com/users/fabiocav/repos","events_url":"https://api.github.com/users/fabiocav/events{/privacy}","received_events_url":"https://api.github.com/users/fabiocav/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/Azure/azure-functions-host/milestones/20","html_url":"https://github.com/Azure/azure-functions-host/milestone/20","labels_url":"https://api.github.com/repos/Azure/azure-functions-host/milestones/20/labels","id":2367077,"number":20,"title":"Stability","description":"","creator":{"login":"davidebbo","id":556238,"avatar_url":"https://avatars1.githubusercontent.com/u/556238?v=4","gravatar_id":"","url":"https://api.github.com/users/davidebbo","html_url":"https://github.com/davidebbo","followers_url":"https://api.github.com/users/davidebbo/followers","following_url":"https://api.github.com/users/davidebbo/following{/other_user}","gists_url":"https://api.github.com/users/davidebbo/gists{/gist_id}","starred_url":"https://api.github.com/users/davidebbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidebbo/subscriptions","organizations_url":"https://api.github.com/users/davidebbo/orgs","repos_url":"https://api.github.com/users/davidebbo/repos","events_url":"https://api.github.com/users/davidebbo/events{/privacy}","received_events_url":"https://api.github.com/users/davidebbo/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":12,"state":"closed","created_at":"2017-03-06T19:39:45Z","updated_at":"2017-03-21T01:49:18Z","due_on":null,"closed_at":"2017-03-21T01:49:18Z"},"comments":8,"created_at":"2017-02-24T21:46:36Z","updated_at":"2018-05-30T16:52:48Z","closed_at":"2017-03-10T20:34:30Z","author_association":"NONE","body":"Please provide a succinct description of the issue.\r\n\r\n#### Repro steps\r\n\r\nrun.fsx:\r\n\r\n``` fsharp\r\nopen System\r\nopen Microsoft.Azure.WebJobs.Host\r\n\r\nlet Run (input: string, tw: TraceWriter) =\r\n    tw.Info \"function starting\"\r\n    \r\n    // something in my code throws an exception\r\n    failwithf \"function failed for this reason\"\r\n    \r\n    tw.Info \"function finished\"\r\n```\r\n\r\n#### Expected behavior\r\n\r\nIt prints \"\"function failed for this reason\" somewhere. \r\n\r\n#### Actual behavior\r\n\r\nError displayed in Invocation Details:\r\n\r\n```\r\n...obs.Script.Description.FunctionInvokerBase.<Invoke>d__29.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.Azure.WebJobs.Host.Executors.FunctionInvoker`1.<InvokeAsync>d__8.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.<InvokeAsync>d__22.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.<ExecuteWithWatchersAsync>d__21.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.<ExecuteWithLoggingAsync>d__19.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)\r\n   at Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.<ExecuteWithLoggingAsync>d__13.MoveNext()\r\n   --- End of inner exception stack trace ---\r\n```\r\n\r\n#### Known workarounds\r\n\r\nCatch it and log it yourself somewhere, then re-throw.\r\n\r\n#### Related information \r\n\r\nI'm was trying to track down an error.\r\nhttps://social.msdn.microsoft.com/Forums/azure/en-US/f01749c4-e7c9-4e9b-9a05-68d04a714c0e/30-minute-timeout-on-normal-always-on-plan?forum=AzureFunctions\r\n\r\ncc @dsyme \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Azure/azure-functions-host/issues/comments/393234659","html_url":"https://github.com/Azure/azure-functions-host/issues/1235#issuecomment-393234659","issue_url":"https://api.github.com/repos/Azure/azure-functions-host/issues/1235","id":393234659,"user":{"login":"mathewc","id":1056548,"avatar_url":"https://avatars3.githubusercontent.com/u/1056548?v=4","gravatar_id":"","url":"https://api.github.com/users/mathewc","html_url":"https://github.com/mathewc","followers_url":"https://api.github.com/users/mathewc/followers","following_url":"https://api.github.com/users/mathewc/following{/other_user}","gists_url":"https://api.github.com/users/mathewc/gists{/gist_id}","starred_url":"https://api.github.com/users/mathewc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathewc/subscriptions","organizations_url":"https://api.github.com/users/mathewc/orgs","repos_url":"https://api.github.com/users/mathewc/repos","events_url":"https://api.github.com/users/mathewc/events{/privacy}","received_events_url":"https://api.github.com/users/mathewc/received_events","type":"User","site_admin":false},"created_at":"2018-05-30T16:52:48Z","updated_at":"2018-05-30T16:52:48Z","author_association":"CONTRIBUTOR","body":"I just tried myself in production in a Node function, threw an error and got the details + stack trace in the portal log window. Can you provide details on how your error is being thrown?"}}
{"actor":{"display_login":"mathewc"}}