{"action":"created","issue":{"url":"https://api.github.com/repos/felixhageloh/uebersicht/issues/334","repository_url":"https://api.github.com/repos/felixhageloh/uebersicht","labels_url":"https://api.github.com/repos/felixhageloh/uebersicht/issues/334/labels{/name}","comments_url":"https://api.github.com/repos/felixhageloh/uebersicht/issues/334/comments","events_url":"https://api.github.com/repos/felixhageloh/uebersicht/issues/334/events","html_url":"https://github.com/felixhageloh/uebersicht/issues/334","id":380976239,"node_id":"MDU6SXNzdWUzODA5NzYyMzk=","number":334,"title":"Error running commands error","user":{"login":"yu-george","id":7471824,"node_id":"MDQ6VXNlcjc0NzE4MjQ=","avatar_url":"https://avatars1.githubusercontent.com/u/7471824?v=4","gravatar_id":"","url":"https://api.github.com/users/yu-george","html_url":"https://github.com/yu-george","followers_url":"https://api.github.com/users/yu-george/followers","following_url":"https://api.github.com/users/yu-george/following{/other_user}","gists_url":"https://api.github.com/users/yu-george/gists{/gist_id}","starred_url":"https://api.github.com/users/yu-george/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yu-george/subscriptions","organizations_url":"https://api.github.com/users/yu-george/orgs","repos_url":"https://api.github.com/users/yu-george/repos","events_url":"https://api.github.com/users/yu-george/events{/privacy}","received_events_url":"https://api.github.com/users/yu-george/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-15T02:47:40Z","updated_at":"2018-11-16T05:56:03Z","closed_at":null,"author_association":"NONE","body":"After I updated to Übersicht 1.3, many of my old widgets stopped working, the output all turned into `error running command` errors with a white background. All the commands worked in previous versions.\r\n\r\nOne of my command looks like this:\r\n```/usr/local/bin/python3 -c 'from datetime import date; print((date(2019, 11, 1) - date.today()).days)'```\r\n\r\nEven if I adapted the old coffee script into jsx scripts, the widget will still output the `error running command` error for about a third of the time.\r\n\r\nWhat could be the possible causes for this error? And what can I do to fix it?"},"comment":{"url":"https://api.github.com/repos/felixhageloh/uebersicht/issues/comments/439290471","html_url":"https://github.com/felixhageloh/uebersicht/issues/334#issuecomment-439290471","issue_url":"https://api.github.com/repos/felixhageloh/uebersicht/issues/334","id":439290471,"node_id":"MDEyOklzc3VlQ29tbWVudDQzOTI5MDQ3MQ==","user":{"login":"yu-george","id":7471824,"node_id":"MDQ6VXNlcjc0NzE4MjQ=","avatar_url":"https://avatars1.githubusercontent.com/u/7471824?v=4","gravatar_id":"","url":"https://api.github.com/users/yu-george","html_url":"https://github.com/yu-george","followers_url":"https://api.github.com/users/yu-george/followers","following_url":"https://api.github.com/users/yu-george/following{/other_user}","gists_url":"https://api.github.com/users/yu-george/gists{/gist_id}","starred_url":"https://api.github.com/users/yu-george/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yu-george/subscriptions","organizations_url":"https://api.github.com/users/yu-george/orgs","repos_url":"https://api.github.com/users/yu-george/repos","events_url":"https://api.github.com/users/yu-george/events{/privacy}","received_events_url":"https://api.github.com/users/yu-george/received_events","type":"User","site_admin":false},"created_at":"2018-11-16T05:56:03Z","updated_at":"2018-11-16T05:56:03Z","author_association":"NONE","body":"@felixhageloh I think the frequency decreased significantly after half a day or so, which is pretty odd…I think the problem occurs pretty randomly. Anyhow, it is working for most of the times now.\r\n\r\nI used the default render method, I don't think there is a problem with that:\r\n```jsx\r\nexport const render = ({ output }) => {\r\n  return (\r\n    <div>\r\n      <h1 className={header}>{output} Days Left, {Math.round((1 - output / 435) * 100)}% Passed</h1>\r\n      <div className={container}>\r\n        <div className={progress} style={{width: (output / 435 * 100) + '%'}} />\r\n      </div>\r\n    </div>\r\n  );\r\n}\r\n```\r\n\r\nAnd the old syntax version:\r\n```coffee\r\nrender: (output) -> \"\"\"\r\n  <div>\r\n    <h1>#{output} Days Left, #{Math.round((1 - output / 435) * 100)}% Passed</h1>\r\n    <div class='container'>\r\n      <div class='progress' style='width: #{output / 435 * 100}%'></div>\r\n    </div>\r\n  </div>\r\n\"\"\"\r\n```\r\n\r\nAs of now, I refreshed multiple times, and both versions worked without giving me the `error running command` error."}}
{"actor":{"display_login":"yu-george"}}