{"action":"created","issue":{"url":"https://api.github.com/repos/sagemathinc/cocalc/issues/3217","repository_url":"https://api.github.com/repos/sagemathinc/cocalc","labels_url":"https://api.github.com/repos/sagemathinc/cocalc/issues/3217/labels{/name}","comments_url":"https://api.github.com/repos/sagemathinc/cocalc/issues/3217/comments","events_url":"https://api.github.com/repos/sagemathinc/cocalc/issues/3217/events","html_url":"https://github.com/sagemathinc/cocalc/pull/3217","id":364895415,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE4OTczMjYy","number":3217,"title":"webapp errors: fix unhandledrejection error reporting","user":{"login":"haraldschilly","id":207405,"node_id":"MDQ6VXNlcjIwNzQwNQ==","avatar_url":"https://avatars0.githubusercontent.com/u/207405?v=4","gravatar_id":"","url":"https://api.github.com/users/haraldschilly","html_url":"https://github.com/haraldschilly","followers_url":"https://api.github.com/users/haraldschilly/followers","following_url":"https://api.github.com/users/haraldschilly/following{/other_user}","gists_url":"https://api.github.com/users/haraldschilly/gists{/gist_id}","starred_url":"https://api.github.com/users/haraldschilly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haraldschilly/subscriptions","organizations_url":"https://api.github.com/users/haraldschilly/orgs","repos_url":"https://api.github.com/users/haraldschilly/repos","events_url":"https://api.github.com/users/haraldschilly/events{/privacy}","received_events_url":"https://api.github.com/users/haraldschilly/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-28T13:45:16Z","updated_at":"2018-09-28T14:16:54Z","closed_at":"2018-09-28T13:52:39Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/sagemathinc/cocalc/pulls/3217","html_url":"https://github.com/sagemathinc/cocalc/pull/3217","diff_url":"https://github.com/sagemathinc/cocalc/pull/3217.diff","patch_url":"https://github.com/sagemathinc/cocalc/pull/3217.patch"},"body":"this fix is based on that below. the whole point is to report an exception `e` as `e`, and not `e.reason`.\r\n\r\n---\r\n\r\nchrome: `Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36`\r\n\r\nsmc_git_rev: 9dde507f765bbe78bafc6d00b22375271ebd1c16\r\n\r\nDate: 2018-09-28 13:34:51.692758\r\n\r\n`{\"0\":\"misc.defaults -- TypeError: property 'message' must be specified: \"}`\r\n\r\n```\r\n<generated>\r\nError\r\n    at s (https://cocalc.com/static/smc-2bee88b0c9d7755adaa4.cacheme.js?2bee88b0c9d7755adaa4:5:854984)\r\n    at h (https://cocalc.com/static/smc-2bee88b0c9d7755adaa4.cacheme.js?2bee88b0c9d7755adaa4:5:857629)\r\n    at console.<anonymous> (https://cocalc.com/static/smc-2bee88b0c9d7755adaa4.cacheme.js?2bee88b0c9d7755adaa4:5:857843)\r\n    at console.e.(anonymous function) [as warn] (https://cocalc.com/static/smc-2bee88b0c9d7755adaa4.cacheme.js?2bee88b0c9d7755adaa4:5:857706)\r\n    at Object.t.defaults (https://cocalc.com/static/smc-2bee88b0c9d7755adaa4.cacheme.js?2bee88b0c9d7755adaa4:5:1163709)\r\n    at m (https://cocalc.com/static/smc-2bee88b0c9d7755adaa4.cacheme.js?2bee88b0c9d7755adaa4:5:854311)\r\n    at u (https://cocalc.com/static/smc-2bee88b0c9d7755adaa4.cacheme.js?2bee88b0c9d7755adaa4:5:854032)\r\n    at https://cocalc.com/static/smc-2bee88b0c9d7755adaa4.cacheme.js?2bee88b0c9d7755adaa4:5:857992\r\n    at function.e._wrapper.e._wrapper (https://cocalc.com/static/smc-2bee88b0c9d7755adaa4.cacheme.js?2bee88b0c9d7755adaa4:5:855526)\r\n```"},"comment":{"url":"https://api.github.com/repos/sagemathinc/cocalc/issues/comments/425449897","html_url":"https://github.com/sagemathinc/cocalc/pull/3217#issuecomment-425449897","issue_url":"https://api.github.com/repos/sagemathinc/cocalc/issues/3217","id":425449897,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTQ0OTg5Nw==","user":{"login":"haraldschilly","id":207405,"node_id":"MDQ6VXNlcjIwNzQwNQ==","avatar_url":"https://avatars0.githubusercontent.com/u/207405?v=4","gravatar_id":"","url":"https://api.github.com/users/haraldschilly","html_url":"https://github.com/haraldschilly","followers_url":"https://api.github.com/users/haraldschilly/followers","following_url":"https://api.github.com/users/haraldschilly/following{/other_user}","gists_url":"https://api.github.com/users/haraldschilly/gists{/gist_id}","starred_url":"https://api.github.com/users/haraldschilly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haraldschilly/subscriptions","organizations_url":"https://api.github.com/users/haraldschilly/orgs","repos_url":"https://api.github.com/users/haraldschilly/repos","events_url":"https://api.github.com/users/haraldschilly/events{/privacy}","received_events_url":"https://api.github.com/users/haraldschilly/received_events","type":"User","site_admin":false},"created_at":"2018-09-28T14:16:54Z","updated_at":"2018-09-28T14:16:54Z","author_association":"CONTRIBUTOR","body":"I built this for `test` and well, it worked and I deployed it in prod. "}}
{"actor":{"display_login":"haraldschilly"}}