{"action":"opened","issue":{"url":"https://api.github.com/repos/etienne-martin/svg-to-img/issues/10","repository_url":"https://api.github.com/repos/etienne-martin/svg-to-img","labels_url":"https://api.github.com/repos/etienne-martin/svg-to-img/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/etienne-martin/svg-to-img/issues/10/comments","events_url":"https://api.github.com/repos/etienne-martin/svg-to-img/issues/10/events","html_url":"https://github.com/etienne-martin/svg-to-img/issues/10","id":388247106,"node_id":"MDU6SXNzdWUzODgyNDcxMDY=","number":10,"title":"UnhandledPromiseRejectionWarning: Error: Evaluation failed","user":{"login":"moment77","id":155930,"node_id":"MDQ6VXNlcjE1NTkzMA==","avatar_url":"https://avatars3.githubusercontent.com/u/155930?v=4","gravatar_id":"","url":"https://api.github.com/users/moment77","html_url":"https://github.com/moment77","followers_url":"https://api.github.com/users/moment77/followers","following_url":"https://api.github.com/users/moment77/following{/other_user}","gists_url":"https://api.github.com/users/moment77/gists{/gist_id}","starred_url":"https://api.github.com/users/moment77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moment77/subscriptions","organizations_url":"https://api.github.com/users/moment77/orgs","repos_url":"https://api.github.com/users/moment77/repos","events_url":"https://api.github.com/users/moment77/events{/privacy}","received_events_url":"https://api.github.com/users/moment77/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-06T14:49:59Z","updated_at":"2018-12-06T14:49:59Z","closed_at":null,"author_association":"NONE","body":"Running a clean install, using your logo.svg and your code:\r\n\r\n```const svgToImg = require(\"svg-to-img\");\r\n(async () => {\r\n  const image = await svgToImg.from(\"logo.svg\").toPng();\r\n  console.log(image);\r\n})();```\r\n`(node:2990) UnhandledPromiseRejectionWarning: Error: Evaluation failed: Error: Malformed SVG\r\n    at Image.onError (__puppeteer_evaluation_script__:57:20)\r\n    at ExecutionContext.evaluateHandle (/Users/jabg/Svenska Spel/test/node_modules/puppeteer/lib/ExecutionContext.js:90:15)\r\n    at <anonymous>\r\n    at process._tickCallback (internal/process/next_tick.js:189:7)\r\n  -- ASYNC --\r\n    at ExecutionContext.<anonymous> (/Users/jabg/Svenska Spel/test/node_modules/puppeteer/lib/helper.js:144:27)\r\n    at ExecutionContext.evaluate (/Users/jabg/Svenska Spel/test/node_modules/puppeteer/lib/ExecutionContext.js:58:31)\r\n    at ExecutionContext.<anonymous> (/Users/jabg/Svenska Spel/test/node_modules/puppeteer/lib/helper.js:145:23)\r\n    at Frame.evaluate (/Users/jabg/Svenska Spel/test/node_modules/puppeteer/lib/FrameManager.js:447:20)\r\n    at <anonymous>\r\n    at process._tickCallback (internal/process/next_tick.js:189:7)\r\n  -- ASYNC --\r\n    at Frame.<anonymous> (/Users/jabg/Svenska Spel/test/node_modules/puppeteer/lib/helper.js:144:27)\r\n    at Page.evaluate (/Users/jabg/Svenska Spel/test/node_modules/puppeteer/lib/Page.js:777:43)\r\n    at Page.<anonymous> (/Users/jabg/Svenska Spel/test/node_modules/puppeteer/lib/helper.js:145:23)\r\n    at convertSvg (/Users/jabg/Svenska Spel/test/node_modules/svg-to-img/dist/index.js:66:31)\r\n    at <anonymous>\r\n    at process._tickCallback (internal/process/next_tick.js:189:7)`"}}
{"actor":{"display_login":"moment77"}}