{"action":"created","issue":{"url":"https://api.github.com/repos/agsh/onvif/issues/49","repository_url":"https://api.github.com/repos/agsh/onvif","labels_url":"https://api.github.com/repos/agsh/onvif/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/agsh/onvif/issues/49/comments","events_url":"https://api.github.com/repos/agsh/onvif/issues/49/events","html_url":"https://github.com/agsh/onvif/issues/49","id":160396514,"number":49,"title":"profileToken problem using stock example.js","user":{"login":"g40","id":812250,"avatar_url":"https://avatars.githubusercontent.com/u/812250?v=3","gravatar_id":"","url":"https://api.github.com/users/g40","html_url":"https://github.com/g40","followers_url":"https://api.github.com/users/g40/followers","following_url":"https://api.github.com/users/g40/following{/other_user}","gists_url":"https://api.github.com/users/g40/gists{/gist_id}","starred_url":"https://api.github.com/users/g40/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/g40/subscriptions","organizations_url":"https://api.github.com/users/g40/orgs","repos_url":"https://api.github.com/users/g40/repos","events_url":"https://api.github.com/users/g40/events{/privacy}","received_events_url":"https://api.github.com/users/g40/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-15T11:09:53Z","updated_at":"2016-06-15T13:22:30Z","closed_at":null,"body":"Running the example using node I get this exception right at start up. It appears to be generated as a result of the initial call to absoluteMove below. How should the profileToken have been set up?\r\n\r\n```\r\nnew Cam({\r\n\thostname: CAMERA_HOST,\r\n\tusername: USERNAME,\r\n\tpassword: PASSWORD\r\n}, function(err) {\r\n\tthis.absoluteMove({\r\n\t\tx: 1\r\n\t\t, y: 1\r\n\t\t, zoom: 1\r\n\t});\r\n```\r\nthough the asynchronous callback system makes this a little difficult to trace.\r\n\r\n```\r\nC:\\src\\onvif\\lib\\ptz.js:330\r\n                        '<ProfileToken>' + (options.profileToken || this.activeS\r\nource.profileToken) + '</ProfileToken>' +\r\n\r\n     ^\r\n\r\nTypeError: Cannot read property 'profileToken' of undefined\r\n    at Cam.absoluteMove (C:\\src\\onvif\\lib\\ptz.js:330:65)\r\n    at null.<anonymous> (C:\\src\\onvif\\example.js:17:7)\r\n    at null.<anonymous> (C:\\src\\onvif\\lib\\cam.js:96:13)\r\n    at null.<anonymous> (C:\\src\\onvif\\lib\\cam.js:415:13)\r\n    at ClientRequest.<anonymous> (C:\\src\\onvif\\lib\\cam.js:193:4)\r\n    at emitOne (events.js:77:13)\r\n    at ClientRequest.emit (events.js:169:7)\r\n    at Socket.socketErrorListener (_http_client.js:267:9)\r\n    at emitOne (events.js:77:13)\r\n    at Socket.emit (events.js:169:7)\r\n```\r\n\r\nAny thoughts on this?"},"comment":{"url":"https://api.github.com/repos/agsh/onvif/issues/comments/226185136","html_url":"https://github.com/agsh/onvif/issues/49#issuecomment-226185136","issue_url":"https://api.github.com/repos/agsh/onvif/issues/49","id":226185136,"user":{"login":"RogerHardiman","id":10171169,"avatar_url":"https://avatars.githubusercontent.com/u/10171169?v=3","gravatar_id":"","url":"https://api.github.com/users/RogerHardiman","html_url":"https://github.com/RogerHardiman","followers_url":"https://api.github.com/users/RogerHardiman/followers","following_url":"https://api.github.com/users/RogerHardiman/following{/other_user}","gists_url":"https://api.github.com/users/RogerHardiman/gists{/gist_id}","starred_url":"https://api.github.com/users/RogerHardiman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RogerHardiman/subscriptions","organizations_url":"https://api.github.com/users/RogerHardiman/orgs","repos_url":"https://api.github.com/users/RogerHardiman/repos","events_url":"https://api.github.com/users/RogerHardiman/events{/privacy}","received_events_url":"https://api.github.com/users/RogerHardiman/received_events","type":"User","site_admin":false},"created_at":"2016-06-15T13:22:30Z","updated_at":"2016-06-15T13:22:30Z","body":"Can you check the value of err before doing the move? "}}
{"actor":{"display_login":"RogerHardiman"}}