{"action":"created","issue":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/4112","repository_url":"https://api.github.com/repos/RocketChat/Rocket.Chat","labels_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/4112/labels{/name}","comments_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/4112/comments","events_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/4112/events","html_url":"https://github.com/RocketChat/Rocket.Chat/issues/4112","id":173209888,"number":4112,"title":"Unable to do I/O operations from incoming webhook scripts section","user":{"login":"vikramjit30","id":13905577,"avatar_url":"https://avatars.githubusercontent.com/u/13905577?v=3","gravatar_id":"","url":"https://api.github.com/users/vikramjit30","html_url":"https://github.com/vikramjit30","followers_url":"https://api.github.com/users/vikramjit30/followers","following_url":"https://api.github.com/users/vikramjit30/following{/other_user}","gists_url":"https://api.github.com/users/vikramjit30/gists{/gist_id}","starred_url":"https://api.github.com/users/vikramjit30/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vikramjit30/subscriptions","organizations_url":"https://api.github.com/users/vikramjit30/orgs","repos_url":"https://api.github.com/users/vikramjit30/repos","events_url":"https://api.github.com/users/vikramjit30/events{/privacy}","received_events_url":"https://api.github.com/users/vikramjit30/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/labels/feat:%20webhooks","name":"feat: webhooks","color":"207de5"},{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/labels/type:%20support","name":"type: support","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-25T13:56:27Z","updated_at":"2016-08-31T19:18:39Z","closed_at":null,"body":"I am trying to run the below part of code in the script section of \"incoming web hooks\" inside method \r\n\" process_incoming_request({ request })\"\r\n\r\n```\r\nfs = require('fs')\r\nfs.readFile('/etc/hosts', 'utf8', function (err,data) {\r\n  if (err) {\r\n    return console.log(err);\r\n  }\r\n  console.log(data);\r\n});\r\n```\r\n\r\n\r\nbut the below error is seen on the RocketChat logs\r\n\r\n![error](https://cloud.githubusercontent.com/assets/13905577/17971645/fd1b41d6-6adb-11e6-8d63-70a00b6825fc.PNG)\r\n\r\nBasically we cannot do any I/O operation inside the Hook's sandbox.\r\n\r\nRocketChat Version: 1.3.0"},"comment":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/comments/243871154","html_url":"https://github.com/RocketChat/Rocket.Chat/issues/4112#issuecomment-243871154","issue_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/4112","id":243871154,"user":{"login":"geekgonecrazy","id":51996,"avatar_url":"https://avatars.githubusercontent.com/u/51996?v=3","gravatar_id":"","url":"https://api.github.com/users/geekgonecrazy","html_url":"https://github.com/geekgonecrazy","followers_url":"https://api.github.com/users/geekgonecrazy/followers","following_url":"https://api.github.com/users/geekgonecrazy/following{/other_user}","gists_url":"https://api.github.com/users/geekgonecrazy/gists{/gist_id}","starred_url":"https://api.github.com/users/geekgonecrazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geekgonecrazy/subscriptions","organizations_url":"https://api.github.com/users/geekgonecrazy/orgs","repos_url":"https://api.github.com/users/geekgonecrazy/repos","events_url":"https://api.github.com/users/geekgonecrazy/events{/privacy}","received_events_url":"https://api.github.com/users/geekgonecrazy/received_events","type":"User","site_admin":false},"created_at":"2016-08-31T19:18:39Z","updated_at":"2016-08-31T19:18:39Z","body":"Yeah this is javascript we are talking about here.  Expensive I/O operations can block the event loop.  If that happens the chat would lock up on your users"}}
{"actor":{"display_login":"geekgonecrazy"}}