Closed nesc1 closed 4 years ago
Can you enable debug logs and send them to me?
https://gkeepapi.readthedocs.io/en/latest/?badge=latest#debug
Hi @kiwiz thanks for the reply.
It seems that the parse exception is not being throw:
...
gkeepapi.node.DEBUG = True
...
print('Authenticating with token')
try:
keep.resume(gkeepApiUser, token)
gkeepApiLoggedIn = True
print('Success')
except gkeepapi.exception.LoginException:
print('Invalid token')
except gkeepapi.exception.ParseException as e:
print(e.raw)
# except Exception as ex:
# print("Generic error on authenticate with token: {}".format(ex))
...
and the output is:
Authenticating with token
Traceback (most recent call last):
File "c:/svn/projs/DoItAll/Compras/resources/gkeepapicomprasupdate.py", line 322, in <module>
loginIntoGoogleKeep()
File "c:/svn/projs/DoItAll/Compras/resources/gkeepapicomprasupdate.py", line 110, in loginIntoGoogleKeep
keep.resume(gkeepApiUser, token)
File "C:\Users\Nuno\AppData\Roaming\Python\Python38\site-packages\gkeepapi\__init__.py", line 568, in resume
self.load(auth, state, sync)
File "C:\Users\Nuno\AppData\Roaming\Python\Python38\site-packages\gkeepapi\__init__.py", line 595, in load
self.sync(True)
File "C:\Users\Nuno\AppData\Roaming\Python\Python38\site-packages\gkeepapi\__init__.py", line 886, in sync
self._parseNodes(changes['nodes'])
File "C:\Users\Nuno\AppData\Roaming\Python\Python38\site-packages\gkeepapi\__init__.py", line 951, in _parseNodes
self._nodes[curr].indent(node, False)
KeyError: '16f774ba1a2.0c8bbd630c586350'
Executing with keep.login(gkeepApiUser, gkeepApiPwd)
as the same behaviour.
Regards
Can anyone login in google keep or is only me that i'me getting this error?
Afaik, it's something specific to your account. Can you try adding the following lines to your code and attaching the debug.log
that's generated?
import logging
logging.basicConfig(filename='debug.log',level=logging.DEBUG)
Hi @kiwiz thank you for the interest.. but looking into the debug log i think this will not help you... it seems, if you want i can send you the user/pwd in a private way for you to test in you side... debug.log
and i do test it with the latest version: Successfully installed gkeepapi-0.11.9
Regards, Nuno
@nesc1 Thanks for the log. It actually did help a bit. It seems that your account has an "indented" listitem for which the the parent no longer exists.
Sending me your creds would work, but we can accomplish the same thing with the following steps:
git clone https://github.com/kiwiz/gkeepapi.git
cd gkeepapi
patch -p1 debug.txt
pip install ./gkeepapi
dump.log
file should be createdpip install gkeepapi
Same issue here using a Google Apps GSuite account and an app password.
I'm getting the same. G Suite account using an app password.
Can you load up the following note and screenshot it? https://keep.google.com/#LIST/1I17QB2o5kyH4KlmdXJxUmZYRK-tDx7dv_sh3Y-EjhVBeKugfL6nG9-21m9_DLO3VXRsi
I'm primarily interested in whether the list item with the text "leite" is in there.
Hi @kiwiz , the list is pretty big (automatic fill) and as a lot of entries of "leite" :) as you can see:
don't know if this will help you or not:
you can check the full list here: https://docs.google.com/document/d/1WoPQ09WdXow1QIqU0zwIAHCcGLJEjXP7rm2Zt606AOc/edit?usp=sharing
Interesting! It looks like the list item is in the "gel de banho" section, but that actually doesn't show up in the Google Doc. That said, I think I've all the information I need for a fix now.
My personal cron script has been failing since wednesday in a similar way, indenting an item on a node that does not exist. From what I can see with some debugging, I can say it's a list item that was moved from one list to another automatically based on my rules, and I think later i hit X on it in the web ui.
This is on a regular gmail account, not gsuite-related, which makes sense to me.
edit: suppressing KeyError here seems to fix it enough for my automatic todo list to work again.
Implemented a fix and pushed up a new version!
If a listitem node points to a parent that doesn't exist, we just mark it as dedented.
Thank you @kiwiz, it seems to work ok now
also fixed for me. thank you @kiwiz :)
Works for me - thanks for the quick fix @kiwiz!
Starting today the login/resume functionality is not working returning the following error:
This was working with no problems until today... now it does not work... any ideas on why this is happening?
Regards, Nuno