Jump to content

Welcome! You're currently a Guest.

If you'd like to join in the Discussion, or access additional features in our forums, please sign in with your Evernote Account here. Have an Evernote Account but forgot your password? Reset it! Don't have an account yet? Create One! You'll need to set your Display Name before your first post.

Photo

Permission Denied Error

error code

  • Please log in to reply
5 replies to this topic

#1 jackplumb

jackplumb

  • Pip
  • Title: Member
  • Group: Members
  • 3 posts

Posted 01 June 2012 - 11:58 AM

iOS SDK

I'm getting an error after authenticating a session in sandbox when trying to search through the users notes using a filter;

Error Domain=com.evernote.sdk Code=3 "The operation couldn’t be completed. (com.evernote.sdk error 3.)" UserInfo=0x888bc70 {parameter=authenticationToken}

I understand this error means permission was denied based on the authenticationToken parameter for a certain action but can't understand why after authenticating, an action could be denied based on the authentication of a token I just received when successfully authenticating.

I can list using NSLog all the notebooks in the user account, but not search for notes within those notebooks due to the error mentioned.

Is this something to do with my initial setup of the Evernote SDK or a poorly written request or something I haven't considered?

#2 Julien Boedec

Julien Boedec

  • Title: Browncoat
  • Group: Evernote Employee
  • 407 posts

Posted 01 June 2012 - 11:39 PM

The issue you are having is probably linked to the permissions you requested for your key. If you only requested Create notes permissions, you may list notebooks but not notes.
If you need to be able to read notes, please send me your API consumer key by PM and I will update your key accordingly.

#3 jackplumb

jackplumb

  • Pip
  • Title: Member
  • Group: Members
  • 3 posts

Posted 11 June 2012 - 10:12 AM

I am still receiving the same error, this time when trying to run a count on the number of notes outlined in the tutorial found at;

http://blog.evernote...ntegration-ios/

I can authenticate the session, display the username of the user but then proceed no further due to the error. I can't work out why this would occur after successfully displaying a detailed list of notebooks and the users credentials with other IBAction's within the same session.



Could this be something to do with the setup of the SDK within my app or something subtle I have overlooked?

#4 SethH

SethH

  • Title: Evernote Employee
  • Group: Evernote Employee
  • 683 posts

Posted 11 June 2012 - 05:13 PM

Did you create your API key with "basic" or "full" permissions? The latter doesn't allow you to read existing notes. We'd be happy to give you full permissions, just send me your API consumer key via private message.

#5 jackplumb

jackplumb

  • Pip
  • Title: Member
  • Group: Members
  • 3 posts

Posted 12 June 2012 - 08:17 AM

I have been in contact with Julien Boedec and he has already upgraded the key. However as it's still not working I'll send you those details in a PM.

Cheers!

#6 SethH

SethH

  • Title: Evernote Employee
  • Group: Evernote Employee
  • 683 posts

Posted 12 June 2012 - 05:18 PM

The permissions are baked into each OAuth token, so even though Julien changed your key's permissions, you might have to revoke your token and reauthenticate. Try revoking your token at https://sandbox.ever...Services.action





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users

Clip to Evernote