Comments (12)
Getting a similar error, not sure if it's related:
Traceback (most recent call last):
File "index.py", line 6, in <module>
success = keep.login(USERNAME, PASSWORD)
File "C:\Python27\lib\site-packages\gkeepapi\__init__.py", line 348, in login
self.load(auth)
File "C:\Python27\lib\site-packages\gkeepapi\__init__.py", line 362, in load
self.sync()
File "C:\Python27\lib\site-packages\gkeepapi\__init__.py", line 568, in sync
self._parseNodes(changes['nodes'])
File "C:\Python27\lib\site-packages\gkeepapi\__init__.py", line 592, in _parseNodes
node = _node.from_json(raw_node)
File "C:\Python27\lib\site-packages\gkeepapi\node.py", line 1428, in from_json
ncls = _type_map[NodeType(_type)]
KeyError: <gkeepapi.node.NodeType object at 0x0000000006BC5F60>
from gkeepapi.
@adamyi Afaik, all the labels in my account have a revision
key. Have you noticed any other behaviour that differs?
@hauckwill Can you test with master
? I'm curious what _type
is set to.
from gkeepapi.
@kiwiz Tested with master and getting no notes through all(). I am getting a new message: No handlers could be found for logger "gkeepapi.node"
I'd be more than happy to help you with whatever you need to diagnose this.
Edit: used print() to get the error:
Unknown node type: LIST
Unknown node type: NOTE
Unknown node type: LIST_ITEM
from gkeepapi.
from gkeepapi.
Got it.
For reference, this account has two shared notes (that are not owned by the account) and everything was working fine a couple of days ago on the pip version.
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): android.clients.google.com
DEBUG:urllib3.connectionpool:https://android.clients.google.com:443 "POST /auth HTTP/1.1" 200 None
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): android.clients.google.com
DEBUG:urllib3.connectionpool:https://android.clients.google.com:443 "POST /auth HTTP/1.1" 200 None
DEBUG:keep:Starting sync: None
DEBUG:keep:Syncing 0 labels and 0 nodes
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): www.googleapis.com
DEBUG:urllib3.connectionpool:https://www.googleapis.com:443 "POST /notes/v1/changes HTTP/1.1" 200 None
WARNING:gkeepapi.node:Unknown node type: LIST
DEBUG:keep:Discarded unknown node
WARNING:gkeepapi.node:Unknown node type: LIST
DEBUG:keep:Discarded unknown node
WARNING:gkeepapi.node:Unknown node type: NOTE
DEBUG:keep:Discarded unknown node
WARNING:gkeepapi.node:Unknown node type: LIST_ITEM
DEBUG:keep:Discarded unknown node
WARNING:gkeepapi.node:Unknown node type: LIST_ITEM
DEBUG:keep:Discarded unknown node
WARNING:gkeepapi.node:Unknown node type: LIST_ITEM
DEBUG:keep:Discarded unknown node
WARNING:gkeepapi.node:Unknown node type: LIST_ITEM
DEBUG:keep:Discarded unknown node
WARNING:gkeepapi.node:Unknown node type: LIST_ITEM
DEBUG:keep:Discarded unknown node
WARNING:gkeepapi.node:Unknown node type: LIST_ITEM
DEBUG:keep:Discarded unknown node
WARNING:gkeepapi.node:Unknown node type: LIST_ITEM
DEBUG:keep:Discarded unknown node
WARNING:gkeepapi.node:Unknown node type: LIST_ITEM
DEBUG:keep:Discarded unknown node
WARNING:gkeepapi.node:Unknown node type: LIST_ITEM
DEBUG:keep:Discarded unknown node
WARNING:gkeepapi.node:Unknown node type: LIST_ITEM
DEBUG:keep:Discarded unknown node
WARNING:gkeepapi.node:Unknown node type: LIST_ITEM
DEBUG:keep:Discarded unknown node
WARNING:gkeepapi.node:Unknown node type: LIST_ITEM
DEBUG:keep:Discarded unknown node
WARNING:gkeepapi.node:Unknown node type: LIST_ITEM
DEBUG:keep:Discarded unknown node
WARNING:gkeepapi.node:Unknown node type: LIST_ITEM
DEBUG:keep:Discarded unknown node
WARNING:gkeepapi.node:Unknown node type: LIST_ITEM
DEBUG:keep:Discarded unknown node
WARNING:gkeepapi.node:Unknown node type: LIST_ITEM
DEBUG:keep:Discarded unknown node
WARNING:gkeepapi.node:Unknown node type: LIST_ITEM
DEBUG:keep:Discarded unknown node
WARNING:gkeepapi.node:Unknown node type: LIST_ITEM
DEBUG:keep:Discarded unknown node
WARNING:gkeepapi.node:Unknown node type: LIST_ITEM
DEBUG:keep:Discarded unknown node
WARNING:gkeepapi.node:Unknown node type: LIST_ITEM
DEBUG:keep:Discarded unknown node
WARNING:gkeepapi.node:Unknown node type: LIST_ITEM
DEBUG:keep:Discarded unknown node
WARNING:gkeepapi.node:Unknown node type: LIST_ITEM
DEBUG:keep:Discarded unknown node
WARNING:gkeepapi.node:Unknown node type: LIST_ITEM
DEBUG:keep:Discarded unknown node
WARNING:gkeepapi.node:Unknown node type: LIST_ITEM
DEBUG:keep:Discarded unknown node
WARNING:gkeepapi.node:Unknown node type: LIST_ITEM
DEBUG:keep:Discarded unknown node
WARNING:gkeepapi.node:Unknown node type: LIST_ITEM
DEBUG:keep:Discarded unknown node
WARNING:gkeepapi.node:Unknown node type: LIST_ITEM
DEBUG:keep:Discarded unknown node
WARNING:gkeepapi.node:Unknown node type: LIST_ITEM
DEBUG:keep:Discarded unknown node
WARNING:gkeepapi.node:Unknown node type: LIST_ITEM
DEBUG:keep:Discarded unknown node
WARNING:gkeepapi.node:Unknown node type: LIST_ITEM
DEBUG:keep:Discarded unknown node
WARNING:gkeepapi.node:Unknown node type: LIST_ITEM
DEBUG:keep:Discarded unknown node
WARNING:gkeepapi.node:Unknown node type: LIST_ITEM
DEBUG:keep:Discarded unknown node
DEBUG:keep:Finishing sync: CgQ0NjYzEhBDZ2tJN0xpZjhacnMyZ0k9
DEBUG:keep:Starting sync: CgQ0NjYzEhBDZ2tJN0xpZjhacnMyZ0k9
DEBUG:keep:Syncing 0 labels and 0 nodes
DEBUG:urllib3.connectionpool:https://www.googleapis.com:443 "POST /notes/v1/changes HTTP/1.1" 200 None
DEBUG:keep:Finishing sync: CgQ0NjYzEhBDZ2tJN0xpZjhacnMyZ0k9
from gkeepapi.
from gkeepapi.
Python 2.7.14
I had enum installed, and after adding enum34 it worked flawlessly!
Thank you so much for the help. Really appreciate the work you've done on this!
from gkeepapi.
I have the same issue in python 3.6. Uncommenting self._revision
allows login, however there are still many sync attempts (~20). Is this usual?
from gkeepapi.
@m-wrzr Do you have a large number of notes or does it look like it's churning on the same few notes? The former is perfectly normal!
from gkeepapi.
The nodes are normally created at the beginning, afterwards it repeats syncing. How can I provide more debug info?
DEBUG:keep:Finishing sync: CqcCYTQ4MjM0LkVBSWF4Z0VMRWdCU3ZRRUtxd0VLZnZqME8tYl9fX19fd3hXV0pTRFF3VUFBX3dIX19rTnZjMjF2TG5WelpYSW9NREF3TURBd05URTVNVGhoWWpRMFlWVXBMbVJwY2w5bGJuUnllU2d6TlRBek16UXhNemMwTVRoY0xqUTFYQzVPTXpVd016TTBNVE0zTkRFNFhDNHhOakZoWWpnNE9EUm1ZbHd1T0RGaU1UVmlaRE0wTlRZeU5EUXpOU2tBQVJCNEllV3N4QTBQWmZFaU9RQUFBQUFaeEFzQVNBUlFBRm9MQ1JLSTY0R3FfWkM1RUFKZzNiU3o1UVlnQVRJR0NKam9zZGdGOElTVmZBRU1RQUFpQ3dsS3RJcVJVUUFBQUNBRxIQQ2drSXFlRHlzcXlwMndJPQ==
DEBUG:keep:Starting sync: CqcCYTQ4MjM0LkVBSWF4Z0VMRWdCU3ZRRUtxd0VLZnZqME8tYl9fX19fd3hXV0pTRFF3VUFBX3dIX19rTnZjMjF2TG5WelpYSW9NREF3TURBd05URTVNVGhoWWpRMFlWVXBMbVJwY2w5bGJuUnllU2d6TlRBek16UXhNemMwTVRoY0xqUTFYQzVPTXpVd016TTBNVE0zTkRFNFhDNHhOakZoWWpnNE9EUm1ZbHd1T0RGaU1UVmlaRE0wTlRZeU5EUXpOU2tBQVJCNEllV3N4QTBQWmZFaU9RQUFBQUFaeEFzQVNBUlFBRm9MQ1JLSTY0R3FfWkM1RUFKZzNiU3o1UVlnQVRJR0NKam9zZGdGOElTVmZBRU1RQUFpQ3dsS3RJcVJVUUFBQUNBRxIQQ2drSXFlRHlzcXlwMndJPQ==
DEBUG:keep:Syncing 0 labels and 0 nodes
DEBUG:urllib3.connectionpool:https://www.googleapis.com:443 "POST /notes/v1/changes HTTP/1.1" 200 None
DEBUG:keep:Finishing sync: Cq4CYTQ4MjM0LkVBSWF5d0VMRWdCU3dnRUtzQUVLZ1FINDlEWnRfX19fXzhNVmc4MVNZSGdBX184QUFQOEJfXzVEYjNOdGJ5NTFjMlZ5S0RBd01EQXdNRFV4T1RFNFlXSTBOR0ZWS1M1a2FYSmZaVzUwY25rb016VXdNek0wTVRNM05ERTRYQzQwTlZ3dVRqTTFNRE16TkRFek56UXhPRnd1TVRZd04yUTJZemMyTjJaY0xqbGhNRGcwTldZd04yTTFZamsyWmpRcEFBRVE2QUlocmRwUWtLUl9NY3M1QUFBQUFKTEpDd0JJQkZBQVdnc0pFb2pyZ2FyOWtMa1FBbURkdExQbEJpQUJNZ1lJbU9peDJBWHdoSlY4QVF4QUFDSUxDVXEwaXBGUkFBQUFJQVkSEENna0lxZUR5c3F5cDJ3ST0=
DEBUG:keep:Starting sync: Cq4CYTQ4MjM0LkVBSWF5d0VMRWdCU3dnRUtzQUVLZ1FINDlEWnRfX19fXzhNVmc4MVNZSGdBX184QUFQOEJfXzVEYjNOdGJ5NTFjMlZ5S0RBd01EQXdNRFV4T1RFNFlXSTBOR0ZWS1M1a2FYSmZaVzUwY25rb016VXdNek0wTVRNM05ERTRYQzQwTlZ3dVRqTTFNRE16TkRFek56UXhPRnd1TVRZd04yUTJZemMyTjJaY0xqbGhNRGcwTldZd04yTTFZamsyWmpRcEFBRVE2QUlocmRwUWtLUl9NY3M1QUFBQUFKTEpDd0JJQkZBQVdnc0pFb2pyZ2FyOWtMa1FBbURkdExQbEJpQUJNZ1lJbU9peDJBWHdoSlY4QVF4QUFDSUxDVXEwaXBGUkFBQUFJQVkSEENna0lxZUR5c3F5cDJ3ST0=
DEBUG:keep:Syncing 0 labels and 0 nodes
DEBUG:urllib3.connectionpool:https://www.googleapis.com:443 "POST /notes/v1/changes HTTP/1.1" 200 None
DEBUG:keep:Finishing sync: CqkCYTQ4MjM0LkVBSWF4d0VMRWdCU3ZnRUtyQUVLZnZqME1SVF9fX19fd3hWeDNxemhXaUFBX3dIX19rTnZjMjF2TG5WelpYSW9NREF3TURBd05URTVNVGhoWWpRMFlWVXBMbVJwY2w5bGJuUnllU2d6TlRBek16UXhNemMwTVRoY0xqUTFYQzVPTXpVd016TTBNVE0zTkRFNFhDNHhOV1kxWVRBMlpEWmlabHd1WWpGak56Y3dZVEE1TVRWaFpEVmlaQ2tBQVJEWUJDSGxyTVFORDJYeElqa0FBQUFBNjg0TEFFZ0NVQUJhQ3drU2lPdUJxdjJRdVJBQ1lOMjBzLVVHSUFFeUJnaVk2TEhZQmZDRWxYd0JERUFBSWdzSlNyU0trVkVBQUFBZ0JnEhBDZ2tJcWVEeXNxeXAyd0k9
DEBUG:keep:Starting sync: CqkCYTQ4MjM0LkVBSWF4d0VMRWdCU3ZnRUtyQUVLZnZqME1SVF9fX19fd3hWeDNxemhXaUFBX3dIX19rTnZjMjF2TG5WelpYSW9NREF3TURBd05URTVNVGhoWWpRMFlWVXBMbVJwY2w5bGJuUnllU2d6TlRBek16UXhNemMwTVRoY0xqUTFYQzVPTXpVd016TTBNVE0zTkRFNFhDNHhOV1kxWVRBMlpEWmlabHd1WWpGak56Y3dZVEE1TVRWaFpEVmlaQ2tBQVJEWUJDSGxyTVFORDJYeElqa0FBQUFBNjg0TEFFZ0NVQUJhQ3drU2lPdUJxdjJRdVJBQ1lOMjBzLVVHSUFFeUJnaVk2TEhZQmZDRWxYd0JERUFBSWdzSlNyU0trVkVBQUFBZ0JnEhBDZ2tJcWVEeXNxeXAyd0k9
DEBUG:keep:Syncing 0 labels and 0 nodes
DEBUG:urllib3.connectionpool:https://www.googleapis.com:443 "POST /notes/v1/changes HTTP/1.1" 200 None
DEBUG:keep:Finishing sync: CqkCYTQ4MjM0LkVBSWF4d0VMRWdCU3ZnRUtyQUVLZnZqMEs0Yl9fX19fd3hWZlBzakRLTUFBX3dIX19rTnZjMjF2TG5WelpYSW9NREF3TURBd05URTVNVGhoWWpRMFlWVXBMbVJwY2w5bGJuUnllU2d6TlRBek16UXhNemMwTVRoY0xqUTFYQzVPTXpVd016TTBNVE0zTkRFNFhDNHhOV1V5TjJJd056STBNRnd1WWpZMU56QmxNV1ptTXpKa1pUWmpNQ2tBQVJESUJpR3QybENRcEg4eHl6a0FBQUFBZWRRTEFFZ0NVQUJhQ3drU2lPdUJxdjJRdVJBQ1lOMjBzLVVHSUFFeUJnaVk2TEhZQmZDRWxYd0JERUFBSWdzSlNyU0trVkVBQUFBZ0JnEhBDZ2tJcWVEeXNxeXAyd0k9
DEBUG:keep:Starting sync: CqkCYTQ4MjM0LkVBSWF4d0VMRWdCU3ZnRUtyQUVLZnZqMEs0Yl9fX19fd3hWZlBzakRLTUFBX3dIX19rTnZjMjF2TG5WelpYSW9NREF3TURBd05URTVNVGhoWWpRMFlWVXBMbVJwY2w5bGJuUnllU2d6TlRBek16UXhNemMwTVRoY0xqUTFYQzVPTXpVd016TTBNVE0zTkRFNFhDNHhOV1V5TjJJd056STBNRnd1WWpZMU56QmxNV1ptTXpKa1pUWmpNQ2tBQVJESUJpR3QybENRcEg4eHl6a0FBQUFBZWRRTEFFZ0NVQUJhQ3drU2lPdUJxdjJRdVJBQ1lOMjBzLVVHSUFFeUJnaVk2TEhZQmZDRWxYd0JERUFBSWdzSlNyU0trVkVBQUFBZ0JnEhBDZ2tJcWVEeXNxeXAyd0k9
DEBUG:keep:Syncing 0 labels and 0 nodes
and so on
from gkeepapi.
@m-wrzr should be fixed in 0.10.7.
from gkeepapi.
Works great, thanks!
from gkeepapi.
Related Issues (20)
- Forced resync on login / resume HOT 4
- The links in exception.LoginException FAQ are dead HOT 3
- How to print all notes in each label? HOT 2
- gkeep.Keep() downloaded nodes all have same updated timestamps: 1970-01-01T00:00:00.002Z <class 'datetime.datetime'> HOT 2
- Migrated Assistant Notes raise KeyError: 'title' on resume HOT 1
- Is this safe? HOT 2
- Parse error in <class 'gkeepapi.node.WebLink'> HOT 15
- Gpsoauth issue HOT 10
- Notes are created out of order HOT 4
- Update authentication flow
- Reduce memory usage
- Notes are not being archived when gnote.archived is set to True and sync() is called HOT 1
- Logging in process - Browser exception error HOT 5
- Keep.sync() marks nodes as synced before they're persisted to the server HOT 4
- Failed to authenticate HOT 6
- [Question] Is it possible to listen for new notes? HOT 1
- Consider documenting updates with a CHANGELOG file or Github Release notes HOT 1
- How to Apply Text Formatting in gkeepapi.node.Note? HOT 2
- SSLError for android.clients.google.com/auth HOT 1
- [Question] Is it possible to get previous version of note?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gkeepapi.