Jump to content

client.get_note_store() triggers a EDAMUserException(errorCode=9, parameter='authenticationToken')


Recommended Posts

Posted (edited)

Hello all,

My production token was working fine for months, and suddenly, since a few hours, I get the following error message when running my code:

EDAMUserException(errorCode=9, parameter='authenticationToken')

I am using Python and this is the code that I have always being using to create my Evernote client:

def get_client():
    config = configparser.ConfigParser()
    config.read(config_file)
    token = config.get('prod', 'token')
    print(f"Token: {token}")
    client = EvernoteClient(token=token, sandbox=False)
    return client

def search_notes(words, notebookGuid=None, tagGuids=[], maxNotes=5):
    client = get_client()
    # Create a filter for the notes search
    filter = NoteFilter()
    filter.words = words
    filter.notebookGuid = notebookGuid
    filter.tagGuids = tagGuids
    filter.inactive = False # We search only active notes, i.e. not in Trash
    filter.ascending = False # Most recent results firt

    spec = NotesMetadataResultSpec()
    spec.includeTitle = True
    noteStore = client.get_note_store()

    # this is where it is failing - client.get_note_store()

What could possibly be wrong? I have not additional message.

Thanks,

Christophe

 

Edited by Christophe Gevrey
Added more info.
Link to comment
  • Christophe Gevrey changed the title to client.get_note_store() triggers a EDAMUserException(errorCode=9, parameter='authenticationToken')
  • Level 5*
42 minutes ago, Christophe Gevrey said:

I realized that I was still using a dev key which expired. My bad.


@s2sailor I have sent a prod API key request by email. Would you be kind enough to help me with this, so I can restore my service?

Many thanks,

Christophe 

FWIW I have flagged this for attention, but if you haven’t already, please submit a support request.  

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...