{"action":"created","issue":{"url":"https://api.github.com/repos/atomjack/dubtrackapi/issues/5","labels_url":"https://api.github.com/repos/atomjack/dubtrackapi/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/atomjack/dubtrackapi/issues/5/comments","events_url":"https://api.github.com/repos/atomjack/dubtrackapi/issues/5/events","html_url":"https://github.com/atomjack/dubtrackapi/issues/5","id":109518287,"number":5,"title":"addCookie error","user":{"login":"jtrutwin","id":1328349,"avatar_url":"https://avatars.githubusercontent.com/u/1328349?v=3","gravatar_id":"","url":"https://api.github.com/users/jtrutwin","html_url":"https://github.com/jtrutwin","followers_url":"https://api.github.com/users/jtrutwin/followers","following_url":"https://api.github.com/users/jtrutwin/following{/other_user}","gists_url":"https://api.github.com/users/jtrutwin/gists{/gist_id}","starred_url":"https://api.github.com/users/jtrutwin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtrutwin/subscriptions","organizations_url":"https://api.github.com/users/jtrutwin/orgs","repos_url":"https://api.github.com/users/jtrutwin/repos","events_url":"https://api.github.com/users/jtrutwin/events{/privacy}","received_events_url":"https://api.github.com/users/jtrutwin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-02T15:45:54Z","updated_at":"2015-10-02T15:51:42Z","closed_at":null,"body":"this line in dubtrackapi/index.js appears to be causing an error:\r\n\r\n        self.ph.addCookie('connect.sid', self.creds, '.dubtrack.fm');\r\n\r\n\r\nphantom stdout: Error: incompatible type of argument(s) in call to addCookie(); candidates were\r\n    addCookie(QVariantMap)\r\n\r\n\r\nphantom stdout:   /net/home/test_accounts/rhel7test4/bot/node_modules/phantom/shim.js:9590 in addCookie\r\n  /net/home/test_accounts/rhel7test4/bot/node_modules/phantom/shim.js:9590 in addCookie\r\n  /net/home/test_accounts/rhel7test4/bot/node_modules/phantom/shim.js:6075 in apply\r\n  /net/home/test_accounts/rhel7test4/bot/node_modules/phantom/shim.js:6051 in handle\r\n  /net/home/test_accounts/rhel7test4/bot/node_modules/phantom/shim.js:5936 in handle\r\n  /net/home/test_accounts/rhel7test4/bot/node_modules/phantom/shim.js:5924 in write\r\n  /net/home/test_accounts/rhel7test4/bot/node_modules/phantom/shim.js:4778 in ondata\r\n  /net/home/test_accounts/rhel7test4/bot/node_modules/phantom/shim.js:1747 in emit\r\n  /net/home/test_accounts/rhel7test4/bot/node_modules/phantom/shim.js:6670 in onmessage\r\n  /net/home/test_accounts/rhel7test4/bot/node_modules/phantom/shim.js:6766 in dispatchEvent\r\n  /net/home/test_accounts/rhel7test4/bot/node_modules/phantom/shim.js:7675 in _dispatchMessage\r\n  /net/home/test_accounts/rhel7test4/bot/node_modules/phantom/shim.js:7733 in _didMessage\r\n  /net/home/test_accounts/rhel7test4/bot/node_modules/phantom/shim.js:7865 in onmessage\r\n\r\n\r\n\r\nThis is on a fresh install.  It appears the cookie function in phantom's shim.js is looking for different kinds of parameters than are being passed by dubtrackapi?\r\n\r\n\r\n  addCookie: function(cookie, cb) {\r\n    if (cb == null) {\r\n      cb = function() {};\r\n    }\r\n    return cb(phantom.addCookie(cookie));\r\n  },\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/atomjack/dubtrackapi/issues/comments/145069190","html_url":"https://github.com/atomjack/dubtrackapi/issues/5#issuecomment-145069190","issue_url":"https://api.github.com/repos/atomjack/dubtrackapi/issues/5","id":145069190,"user":{"login":"atomjack","id":114672,"avatar_url":"https://avatars.githubusercontent.com/u/114672?v=3","gravatar_id":"","url":"https://api.github.com/users/atomjack","html_url":"https://github.com/atomjack","followers_url":"https://api.github.com/users/atomjack/followers","following_url":"https://api.github.com/users/atomjack/following{/other_user}","gists_url":"https://api.github.com/users/atomjack/gists{/gist_id}","starred_url":"https://api.github.com/users/atomjack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atomjack/subscriptions","organizations_url":"https://api.github.com/users/atomjack/orgs","repos_url":"https://api.github.com/users/atomjack/repos","events_url":"https://api.github.com/users/atomjack/events{/privacy}","received_events_url":"https://api.github.com/users/atomjack/received_events","type":"User","site_admin":false},"created_at":"2015-10-02T15:51:42Z","updated_at":"2015-10-02T15:51:42Z","body":"Yeah, I started getting that all of a sudden as well. I think phantom-nodejs version 0.7.2 wants you to pass strings to addCookie, while 0.8.0 wants an object. I know for plugbotapi, I had been passing it an object, but when I started on this API it wasn't working until I passed it strings, but maybe I had somehow had 0.7.2 installed. I recently upgraded to 0.8.0 and it started throwing that error, so I changed it to pass an object to addCookie, and it worked again. I'll update the API to require phantom 0.8.0 and pass the object, and that should hopefully work. I just haven't had the time to examine the issue further. Stand by and I'll push up a fix."}}