我正在使用evernote javascript SDK [evernote@2.0.1-beta],工作正常,直到我尝试拨打以下电话::
noteStore.getNoteWithResultSpec(guid, {includeContent:true, includeResourcesData: true})
当我在evernote上的笔记包含二进制数据时,对此函数getNoteWithResultSpec
的调用失败,例如[img / pdf]等。但是如果我的笔记只包含文本数据[no img / pdf],那么这个功能正常。
控制台显示以下内容::
evernote/node_modules/evernote/lib/thrift/transport/memBuffer.js:32
if (this.offset + len > this.buffer.length) throw Error('MemBuffer overrun');
^
Error: MemBuffer overrun
at Error (native)
at MemBuffer.read (/evernote/node_modules/evernote/lib/thrift/transport/memBuffer.js:32:55)
at BinaryProtocol.readBinary (/evernote/node_modules/evernote/lib/thrift/protocol/binaryProto
col.js:327:29)
at BinaryProtocol.readType (/evernote/node_modules/evernote/lib/thrift/protocol/binaryProtoco
l.js:355:25)
at Object.Thrift.Struct.readFields (/evernote/node_modules/evernote/lib/thrift/thrift.js:505:
49)
at Thrift.Struct.read (/evernote/node_modules/evernote/lib/thrift/thrift.js:485:19)