{"action":"created","issue":{"url":"https://api.github.com/repos/deepstreamIO/deepstream.io/issues/328","repository_url":"https://api.github.com/repos/deepstreamIO/deepstream.io","labels_url":"https://api.github.com/repos/deepstreamIO/deepstream.io/issues/328/labels{/name}","comments_url":"https://api.github.com/repos/deepstreamIO/deepstream.io/issues/328/comments","events_url":"https://api.github.com/repos/deepstreamIO/deepstream.io/issues/328/events","html_url":"https://github.com/deepstreamIO/deepstream.io/issues/328","id":171750245,"number":328,"title":"first call to deepstream throws error in update","user":{"login":"edwardsmarkf","id":2924002,"avatar_url":"https://avatars.githubusercontent.com/u/2924002?v=3","gravatar_id":"","url":"https://api.github.com/users/edwardsmarkf","html_url":"https://github.com/edwardsmarkf","followers_url":"https://api.github.com/users/edwardsmarkf/followers","following_url":"https://api.github.com/users/edwardsmarkf/following{/other_user}","gists_url":"https://api.github.com/users/edwardsmarkf/gists{/gist_id}","starred_url":"https://api.github.com/users/edwardsmarkf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edwardsmarkf/subscriptions","organizations_url":"https://api.github.com/users/edwardsmarkf/orgs","repos_url":"https://api.github.com/users/edwardsmarkf/repos","events_url":"https://api.github.com/users/edwardsmarkf/events{/privacy}","received_events_url":"https://api.github.com/users/edwardsmarkf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-08-17T20:17:27Z","updated_at":"2016-08-24T16:40:48Z","closed_at":null,"body":"hello - newbie here who cannot tell if i have discovered a DS issue, or i am doing something really stupid, or perhaps both.    this is a NEW installation running on an amazon-ec2 instance which has nothing except for \"yum deepstream\" and two scripts (both below)\r\n\r\nthank you all very much.\r\n\r\nstack trace (does NOT include my script name, which is very surprising):\r\n\r\n===========================\r\n```\r\n/home/ec2-user/node_modules/deepstream.io-client-js/src/record/record.js:542\r\n               if( currentValue !== this._oldPathValues[ path ] ) {\r\n                                                       ^\r\n\r\nTypeError: Cannot read property 'testValueTwo' of null\r\n   at Record._completeChange (/home/ec2-user/node_modules/deepstream.io-client-js/src/record/record.js:542:43)\r\n   at Record._applyUpdate (/home/ec2-user/node_modules/deepstream.io-client-js/src/record/record.js:427:7)\r\n   at Record._$onMessage (/home/ec2-user/node_modules/deepstream.io-client-js/src/record/record.js:302:8)\r\n   at RecordHandler._$handle (/home/ec2-user/node_modules/deepstream.io-client-js/src/record/record-handler.js:228:25)\r\n   at Client._$onMessage (/home/ec2-user/node_modules/deepstream.io-client-js/src/client.js:128:42)\r\n   at Connection._onMessage (/home/ec2-user/node_modules/deepstream.io-client-js/src/message/connection.js:323:17)\r\n   at emitOne (events.js:96:13)\r\n   at emit (events.js:188:7)\r\n   at TcpConnection._onData (/home/ec2-user/node_modules/deepstream.io-client-js/src/tcp/tcp-connection.js:180:7)\r\n   at emitOne (events.js:96:13)\r\n```\r\n\r\n```javascript\r\n// server\r\n\r\nvar deepstream = require('deepstream.io-client-js');\r\n\r\nds = deepstream( '127.0.0.1:9021' ).login();\r\nds.record.listen('test', function (recordName, isSubscribed)    {\r\n\r\n       record = ds.record.getRecord(recordName)        ;\r\n\r\n       record.subscribe ('testValueOne', function(value)       {\r\n               record.set ('testValueTwo' , 'SERVER: initial testValueTwo setting.' );\r\n       });\r\n\r\n       record.subscribe ('testValueTwo', function (value)  {\r\n               console.log('in whenReady area');\r\n       });\r\n});\r\n```\r\n\r\n```javascript\r\n// client\r\n\r\nvar deepstream = require('deepstream.io-client-js');\r\nds = deepstream( '127.0.0.1:9021' ).login();\r\n\r\n//record = ds.record.getRecord('test' + ds.getUid()     )       ;\r\nrecord = ds.record.getRecord('test' + (new Date).getTime()      )       ;\r\n//record = ds.record.getRecord('test'   )       ;\r\n\r\nrecord.set('testValueOne', 'value set here');\r\nrecord.subscribe ('testValueTwo', function (value)  {\r\n       testValueTwo = record.get('testValueTwo'                );\r\n}); \r\n```"},"comment":{"url":"https://api.github.com/repos/deepstreamIO/deepstream.io/issues/comments/242130783","html_url":"https://github.com/deepstreamIO/deepstream.io/issues/328#issuecomment-242130783","issue_url":"https://api.github.com/repos/deepstreamIO/deepstream.io/issues/328","id":242130783,"user":{"login":"edwardsmarkf","id":2924002,"avatar_url":"https://avatars.githubusercontent.com/u/2924002?v=3","gravatar_id":"","url":"https://api.github.com/users/edwardsmarkf","html_url":"https://github.com/edwardsmarkf","followers_url":"https://api.github.com/users/edwardsmarkf/followers","following_url":"https://api.github.com/users/edwardsmarkf/following{/other_user}","gists_url":"https://api.github.com/users/edwardsmarkf/gists{/gist_id}","starred_url":"https://api.github.com/users/edwardsmarkf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edwardsmarkf/subscriptions","organizations_url":"https://api.github.com/users/edwardsmarkf/orgs","repos_url":"https://api.github.com/users/edwardsmarkf/repos","events_url":"https://api.github.com/users/edwardsmarkf/events{/privacy}","received_events_url":"https://api.github.com/users/edwardsmarkf/received_events","type":"User","site_admin":false},"created_at":"2016-08-24T16:40:48Z","updated_at":"2016-08-24T16:40:48Z","body":"it never ceases to amaze me what i can learn from looking at other peoples stuff.  thank you Tim."}}
{"actor":{"display_login":"edwardsmarkf"}}