{"action":"created","issue":{"url":"https://api.github.com/repos/chill117/proxy-verifier/issues/13","repository_url":"https://api.github.com/repos/chill117/proxy-verifier","labels_url":"https://api.github.com/repos/chill117/proxy-verifier/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/chill117/proxy-verifier/issues/13/comments","events_url":"https://api.github.com/repos/chill117/proxy-verifier/issues/13/events","html_url":"https://github.com/chill117/proxy-verifier/issues/13","id":168339976,"number":13,"title":"Error: Callback was already called.","user":{"login":"cyclops24","id":8266479,"avatar_url":"https://avatars.githubusercontent.com/u/8266479?v=3","gravatar_id":"","url":"https://api.github.com/users/cyclops24","html_url":"https://github.com/cyclops24","followers_url":"https://api.github.com/users/cyclops24/followers","following_url":"https://api.github.com/users/cyclops24/following{/other_user}","gists_url":"https://api.github.com/users/cyclops24/gists{/gist_id}","starred_url":"https://api.github.com/users/cyclops24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyclops24/subscriptions","organizations_url":"https://api.github.com/users/cyclops24/orgs","repos_url":"https://api.github.com/users/cyclops24/repos","events_url":"https://api.github.com/users/cyclops24/events{/privacy}","received_events_url":"https://api.github.com/users/cyclops24/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chill117/proxy-verifier/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-07-29T14:41:06Z","updated_at":"2016-08-30T01:26:50Z","closed_at":null,"body":"Hi @chill117,\r\nI used this code and sometimes it's return below error and app server restarted at all:\r\n\r\n```\r\nW20160729-19:02:08.443(4.5)? (STDERR) /home/usename/Projects/Proxy Assistant/Sources/node_modules/proxy-verifier/node_modules/async/lib/async.js:43\r\nW20160729-19:02:08.444(4.5)? (STDERR)             if (fn === null) throw new Error(\"Callback was already called.\");\r\nW20160729-19:02:08.444(4.5)? (STDERR)                              ^\r\nW20160729-19:02:08.445(4.5)? (STDERR) \r\nW20160729-19:02:08.446(4.5)? (STDERR) Error: Callback was already called.\r\nW20160729-19:02:08.446(4.5)? (STDERR)     at /home/usename/Projects/Proxy Assistant/Sources/node_modules/proxy-verifier/node_modules/async/lib/async.js:43:36\r\nW20160729-19:02:08.446(4.5)? (STDERR)     at /home/usename/Projects/Proxy Assistant/Sources/node_modules/proxy-verifier/node_modules/async/lib/async.js:723:17\r\nW20160729-19:02:08.446(4.5)? (STDERR)     at /home/usename/Projects/Proxy Assistant/Sources/node_modules/proxy-verifier/node_modules/async/lib/async.js:167:37\r\nW20160729-19:02:08.447(4.5)? (STDERR)     at /home/usename/Projects/Proxy Assistant/Sources/node_modules/proxy-verifier/index.js:248:4\r\nW20160729-19:02:08.447(4.5)? (STDERR)     at Request.<anonymous> (/home/usename/Projects/Proxy Assistant/Sources/node_modules/proxy-verifier/index.js:445:4)\r\nW20160729-19:02:08.447(4.5)? (STDERR)     at emitOne (events.js:77:13)\r\nW20160729-19:02:08.447(4.5)? (STDERR)     at Request.emit (events.js:169:7)\r\nW20160729-19:02:08.448(4.5)? (STDERR)     at Request.onRequestError (/home/usename/Projects/Proxy Assistant/Sources/node_modules/proxy-verifier/node_modules/request/request.js:820:8)\r\nW20160729-19:02:08.448(4.5)? (STDERR)     at emitOne (events.js:77:13)\r\nW20160729-19:02:08.448(4.5)? (STDERR)     at ClientRequest.emit (events.js:169:7)\r\n=> Exited with code: 1\r\n```\r\n\r\nThis is my code:\r\n```\r\n            // proxy format: http://192.168.1.1:8080 (Protocol://IP:PORT)\r\n            let proxyParts = proxy.proxy.split(\":\");\r\n            let protocol = proxyParts[0].toLowerCase();\r\n            let ipAddress = proxyParts[1].replace(\"//\", \"\");\r\n            let port = proxyParts[2];\r\n\r\n            let proxyObj = {\r\n                ipAddress: ipAddress,\r\n                port: port,\r\n                protocol: protocol\r\n            };\r\n            ProxyVerifier.testAll(proxyObj, Meteor.bindEnvironment((error, result) => {\r\n\r\n                if (error) {\r\n                    // Some unusual error occurred.\r\n                } else {\r\n                    // anonymityLevel will be a string equal to \"transparent\", \"anonymous\", or \"elite\".\r\n                    if (result.anonymityLevel === \"elite\" && result.protocols[proxyObj.protocol].ok) {\r\n                        Proxies.update({_id: proxy._id}, {$inc: {point: 1}});\r\n                    } else {\r\n                        Proxies.update({_id: proxy._id}, {$inc: {point: -1}});\r\n                    }\r\n                }\r\n            }));\r\n```\r\n\r\nDo you have any suggestion?? My code is wrong or it's a bug?"},"comment":{"url":"https://api.github.com/repos/chill117/proxy-verifier/issues/comments/243306591","html_url":"https://github.com/chill117/proxy-verifier/issues/13#issuecomment-243306591","issue_url":"https://api.github.com/repos/chill117/proxy-verifier/issues/13","id":243306591,"user":{"login":"snajjar","id":1130216,"avatar_url":"https://avatars.githubusercontent.com/u/1130216?v=3","gravatar_id":"","url":"https://api.github.com/users/snajjar","html_url":"https://github.com/snajjar","followers_url":"https://api.github.com/users/snajjar/followers","following_url":"https://api.github.com/users/snajjar/following{/other_user}","gists_url":"https://api.github.com/users/snajjar/gists{/gist_id}","starred_url":"https://api.github.com/users/snajjar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snajjar/subscriptions","organizations_url":"https://api.github.com/users/snajjar/orgs","repos_url":"https://api.github.com/users/snajjar/repos","events_url":"https://api.github.com/users/snajjar/events{/privacy}","received_events_url":"https://api.github.com/users/snajjar/received_events","type":"User","site_admin":false},"created_at":"2016-08-30T01:26:50Z","updated_at":"2016-08-30T01:26:50Z","body":"+1, same problem here."}}
{"actor":{"display_login":"snajjar"}}