{"action":"opened","issue":{"url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/7469","labels_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/7469/labels{/name}","comments_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/7469/comments","events_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/7469/events","html_url":"https://github.com/DefinitelyTyped/DefinitelyTyped/issues/7469","id":124693488,"number":7469,"title":"morgan error: uncaughtException: stream.write is not a function","user":{"login":"Yaojian","id":1448565,"avatar_url":"https://avatars.githubusercontent.com/u/1448565?v=3","gravatar_id":"","url":"https://api.github.com/users/Yaojian","html_url":"https://github.com/Yaojian","followers_url":"https://api.github.com/users/Yaojian/followers","following_url":"https://api.github.com/users/Yaojian/following{/other_user}","gists_url":"https://api.github.com/users/Yaojian/gists{/gist_id}","starred_url":"https://api.github.com/users/Yaojian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yaojian/subscriptions","organizations_url":"https://api.github.com/users/Yaojian/orgs","repos_url":"https://api.github.com/users/Yaojian/repos","events_url":"https://api.github.com/users/Yaojian/events{/privacy}","received_events_url":"https://api.github.com/users/Yaojian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-04T04:08:50Z","updated_at":"2016-01-04T04:08:50Z","closed_at":null,"body":"Passing a custom write handler into morgan using the format specified in morgan.d.ts of version https://github.com/DefinitelyTyped/DefinitelyTyped/commit/64795f2f0f0b96d7bf95d1d485e11dbc6d6703d1 causes runtime error: `uncaughtException: stream.write is not a function`.\r\n\r\nIn morgan, the `stream` value should be an object with a `write` property which is a function that writes logs. \r\n"}}