{"action":"created","issue":{"url":"https://api.github.com/repos/vbauer/manet/issues/10","labels_url":"https://api.github.com/repos/vbauer/manet/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/vbauer/manet/issues/10/comments","events_url":"https://api.github.com/repos/vbauer/manet/issues/10/events","html_url":"https://github.com/vbauer/manet/issues/10","id":52616859,"number":10,"title":"[BUG]Write out file will not success and no error throwed (because the tmp file name is too long)","user":{"login":"ppoo24","id":1631659,"avatar_url":"https://avatars.githubusercontent.com/u/1631659?v=3","gravatar_id":"","url":"https://api.github.com/users/ppoo24","html_url":"https://github.com/ppoo24","followers_url":"https://api.github.com/users/ppoo24/followers","following_url":"https://api.github.com/users/ppoo24/following{/other_user}","gists_url":"https://api.github.com/users/ppoo24/gists{/gist_id}","starred_url":"https://api.github.com/users/ppoo24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppoo24/subscriptions","organizations_url":"https://api.github.com/users/ppoo24/orgs","repos_url":"https://api.github.com/users/ppoo24/repos","events_url":"https://api.github.com/users/ppoo24/events{/privacy}","received_events_url":"https://api.github.com/users/ppoo24/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/vbauer/manet/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2014-12-22T03:23:29Z","updated_at":"2015-04-20T05:07:35Z","closed_at":null,"body":"I've found this BUG under Windows 7 64bit, stripping out the raw shell command (manual piece together):\r\n```shell\r\nphantomjs \"E:\\\\Program Files (x86)\\\\nodejs\\\\node_modules\\\\manet\\\\src\\\\scripts\\\\screenshot.js\" \"eyJ1cmwiOiJodHRwOi8vengyNTBsb2NhbC5jb206MzAwMC9tYWdpY3Blbi9hcHAvIy9tYWluL2luZGV4P2l0ZW1MYXlJZD0zJnNuYXBzaG90PTEmX19hPTk2QjcxRDkyOEJFRTM4NkUxMTA2MjFCRUIzN0RGRkYyIiwiZm9ybWF0IjoicG5nIiwid2lkdGgiOjE5MjAsImhlaWdodCI6MTA4MCwic2VsZWN0b3IiOiIjbWFpbi1hcmVhIn0=\" \"C:\\\\Users\\\\ADMINI~1\\\\AppData\\\\Local\\\\Temp\\\\yJ1cmwiOiJodHRwOi8vengyNTBsb2NhbC5jb206MzAwMC9tYWdpY3Blbi9hcHAvIy9tYWluL2luZGV4P2l0ZW1MYXlJZD0zJnNuYXBzaG90PTEmX19hPTk2QjcxRDkyOEJFRTM4NkUxMTA2MjFCRUIzN0RGRkYyIiwiZm9ybWF0IjoicG5nIiwid2lkdGgiOjE5MjAsImhlaWdodCI6MTA4MCwic2VsZWN0b3IiOiIjbWFpbi1hcmVhIn0=.png\"\r\n```\r\nthis command will run successfully with no extra exceptions, but the temp file will not be writed, so when visit manet, manet will send 404.\r\nsearched, linux && windows both have the file name length limiting, so we should keep the temp file name's length, and add a prefix word + a random word + timestamp is well.\r\n\r\nat `manet/src/capture.js` Line 18, i modified:\r\n```js\r\nfunction outputFile(options, conf, base64) {\r\n    var format = options.format || DEF_FORMAT;\r\n\t//zcs=>The base64's length is too long for a file name, so we should fix the length\r\n\tvar filename = 'manettemp_' + (base64 + '').substr(-20) + '_' + Date.now() + '_' + Math.floor(Math.random() * (999999 - 100000) + 100000);\r\n\t//<=zcs\r\n    // return conf.storage + path.sep + base64 + '.' + format; //zcs=old line\r\n\treturn conf.storage + path.sep + filename + '.' + format;\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/vbauer/manet/issues/comments/94358054","html_url":"https://github.com/vbauer/manet/issues/10#issuecomment-94358054","issue_url":"https://api.github.com/repos/vbauer/manet/issues/10","id":94358054,"user":{"login":"ppoo24","id":1631659,"avatar_url":"https://avatars.githubusercontent.com/u/1631659?v=3","gravatar_id":"","url":"https://api.github.com/users/ppoo24","html_url":"https://github.com/ppoo24","followers_url":"https://api.github.com/users/ppoo24/followers","following_url":"https://api.github.com/users/ppoo24/following{/other_user}","gists_url":"https://api.github.com/users/ppoo24/gists{/gist_id}","starred_url":"https://api.github.com/users/ppoo24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppoo24/subscriptions","organizations_url":"https://api.github.com/users/ppoo24/orgs","repos_url":"https://api.github.com/users/ppoo24/repos","events_url":"https://api.github.com/users/ppoo24/events{/privacy}","received_events_url":"https://api.github.com/users/ppoo24/received_events","type":"User","site_admin":false},"created_at":"2015-04-20T05:07:35Z","updated_at":"2015-04-20T05:07:35Z","body":"@sgates as I mentioned above, u could rename the file name in your way as a temporary solution for the problem"}}