Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type object #92

Open
jakemurphys1 opened this issue Nov 12, 2018 · 1 comment

Comments

@jakemurphys1
Copy link

I was able to get the oauth token and was able to get

          var userStore = client.getUserStore();
            userStore.getUser().then(function(user) {
                console.log("username",user)
              // user is the returned User object
            });

and

        noteStore.listNotebooks().then(function(notebooks) {
          console.log("notebooks",notebooks); // the user's notebooks!
        });

to work without issue. However, when I used this:

          //get notes
          var filter = new Evernote.NoteStore.NoteFilter({
              words: ['one', 'two', 'three'],
              ascending: true
          });
          var spec = new Evernote.NoteStore.NotesMetadataResultSpec({
              includeTitle: true,
              includeContentLength: true,
            });
          console.log("filter",filter)
          console.log("spec",spec)
            console.log("got here")
            noteStore.findNotesMetadata(filter, 0, 500, spec).then(function(notesMetadataList) {
                console.log("notes",notesMetadataList)
              // data.notes is the list of matching notes
            });

I get the error: The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type object

@seckie
Copy link

seckie commented Jan 6, 2019

This seems to be same issue to #83 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants