{"action":"created","issue":{"url":"https://api.github.com/repos/evernote/evernote-sdk-js/issues/65","repository_url":"https://api.github.com/repos/evernote/evernote-sdk-js","labels_url":"https://api.github.com/repos/evernote/evernote-sdk-js/issues/65/labels{/name}","comments_url":"https://api.github.com/repos/evernote/evernote-sdk-js/issues/65/comments","events_url":"https://api.github.com/repos/evernote/evernote-sdk-js/issues/65/events","html_url":"https://github.com/evernote/evernote-sdk-js/issues/65","id":197469186,"number":65,"title":"getNoteContent MemBuffer overrun","user":{"login":"andyb","id":47119,"avatar_url":"https://avatars.githubusercontent.com/u/47119?v=3","gravatar_id":"","url":"https://api.github.com/users/andyb","html_url":"https://github.com/andyb","followers_url":"https://api.github.com/users/andyb/followers","following_url":"https://api.github.com/users/andyb/following{/other_user}","gists_url":"https://api.github.com/users/andyb/gists{/gist_id}","starred_url":"https://api.github.com/users/andyb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andyb/subscriptions","organizations_url":"https://api.github.com/users/andyb/orgs","repos_url":"https://api.github.com/users/andyb/repos","events_url":"https://api.github.com/users/andyb/events{/privacy}","received_events_url":"https://api.github.com/users/andyb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-24T16:27:00Z","updated_at":"2016-12-28T09:36:51Z","closed_at":null,"body":"Hi,\r\n\r\nSeeing the following issue when calling getNoteContent()\r\n\r\n```\r\n/Users/andy.britcliffe/code/action/node_modules/evernote/lib/thrift/transport/memBuffer.js:29\r\n    if (this.offset + len > this.buffer.length) throw Error('MemBuffer overrun');\r\n                                                ^\r\n\r\nError: MemBuffer overrun\r\n    at Error (native)\r\n    at MemBuffer.read (/Users/andy.britcliffe/code/action/node_modules/evernote/lib/thrift/transport/memBuffer.js:29:55)\r\n    at BinaryProtocol.readString (/Users/andy.britcliffe/code/action/node_modules/evernote/lib/thrift/protocol/binaryProtocol.j\r\ns:333:29)\r\n    at BinaryProtocol.readType (/Users/andy.britcliffe/code/action/node_modules/evernote/lib/thrift/protocol/binaryProtocol.js:\r\n353:25)\r\n    at Object.Thrift.Struct.readFields (/Users/andy.britcliffe/code/action/node_modules/evernote/lib/thrift/thrift.js:505:49)\r\n    at Thrift.Struct.read (/Users/andy.britcliffe/code/action/node_modules/evernote/lib/thrift/thrift.js:485:19)\r\n\r\n    at Thrift.Method.processResponse (/Users/andy.britcliffe/code/action/node_modules/evernote/lib/thrift/thrift.js:204:26)\r\n    at null.<anonymous> (/Users/andy.britcliffe/code/action/node_modules/evernote/lib/thrift/thrift.js:165:42)\r\n    at wrapTransport (/Users/andy.britcliffe/code/action/node_modules/evernote/lib/thrift/protocol/binaryProtocol.js:48:20)\r\n    at IncomingMessage.<anonymous> (/Users/andy.britcliffe/code/action/node_modules/evernote/lib/thrift/transport/binaryHttpTra\r\nnsport.js:77:27)\r\n```\r\n\r\nCode is:\r\n\r\n```\r\nvar noteStore = authClient.getNoteStore();\r\n  var filter = {\r\n    words: searchText,\r\n  };\r\n\r\n  noteStore.findNotesMetadata(\r\n      filter,\r\n      0,\r\n      100,\r\n      {\r\n            includeTitle: true,\r\n            includeContentLength: true,\r\n            includeCreated: true,\r\n            includeUpdated: true\r\n        }\r\n  ).then(function(res) {\r\n    for (var i = 0; i < res.notes.length; i++) {\r\n      noteStore.getNoteContent(res.notes[i].guid).then(function(note){\r\n          console.log(note);\r\n      });\r\n    }\r\n  })\r\n```\r\n\r\nUsing  v6.9.2\r\n\r\nLooks like someone has seen something similar here: http://stackoverflow.com/questions/41189736/how-to-avoid-membuffer-overrun-in-node-js-evernote-api-2-0-0-beta\r\n\r\nAny help/insight appreciated. Thanks"},"comment":{"url":"https://api.github.com/repos/evernote/evernote-sdk-js/issues/comments/269451801","html_url":"https://github.com/evernote/evernote-sdk-js/issues/65#issuecomment-269451801","issue_url":"https://api.github.com/repos/evernote/evernote-sdk-js/issues/65","id":269451801,"user":{"login":"ervinewell","id":11768033,"avatar_url":"https://avatars.githubusercontent.com/u/11768033?v=3","gravatar_id":"","url":"https://api.github.com/users/ervinewell","html_url":"https://github.com/ervinewell","followers_url":"https://api.github.com/users/ervinewell/followers","following_url":"https://api.github.com/users/ervinewell/following{/other_user}","gists_url":"https://api.github.com/users/ervinewell/gists{/gist_id}","starred_url":"https://api.github.com/users/ervinewell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ervinewell/subscriptions","organizations_url":"https://api.github.com/users/ervinewell/orgs","repos_url":"https://api.github.com/users/ervinewell/repos","events_url":"https://api.github.com/users/ervinewell/events{/privacy}","received_events_url":"https://api.github.com/users/ervinewell/received_events","type":"User","site_admin":false},"created_at":"2016-12-28T09:36:51Z","updated_at":"2016-12-28T09:36:51Z","body":"I've encountered the same problem!!!"}}
{"actor":{"display_login":"ervinewell"}}