question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

blob exception on login

See original GitHub issue

Hi I have this :

keep = gkeepapi.Keep()
try:
    keep.login(GAppUser, GAppPass)
except Exception as e:
    print(e)

and get this :

'blob'

what does it mean ? and why ? thank you 🌹

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kiwizcommented, Jul 11, 2018

@layolu Thanks for the detailed investigation work.

I’ve pushed up 0.10.10 that should fix this issue. @mostafaasadi

1reaction
layolucommented, Jun 28, 2018

Hi, I encountered same issue after I did as follows:

  1. I added an image to an existing list from Google Keep’s Chrome app.
  2. Because of unstable wifi connection, the upload process seemed stalled; the progress bar below the image didn’t disappear.
  3. I closed and re-opened the app, and added the image to the list again.
  4. The upload process succeeded and everything seemed fine on the app.

At least in my case this issue is probably caused by this incomplete uploading attempt of the image.

I’m using the newest version (0.10.9) and have got an similar stack trace repored above. I inspected this issue using pdb as follows:

>>> import gkeepapi
>>> import pdb
>>> keep = gkeepapi.Keep()
>>> pdb.run("keep.login('my.account.id@gmail.com', 'mypassword')")
> <string>(1)<module>()
(Pdb) b /path/to/venv/gkeepapi/lib/python3.5/site-packages/gkeepapi/node.py:1350
Breakpoint 1 at /path/to/venv/gkeepapi/lib/python3.5/site-packages/gkeepapi/node.py:1350
(Pdb) c
> /path/to/venv/gkeepapi/lib/python3.5/site-packages/gkeepapi/node.py(1350)load()
-> self.blob = self.from_json(raw['blob'])
(Pdb) pp raw
# a normal dict which has 'blob' key
{'annotationsGroup': {'kind': 'notes#annotationsGroup'},
 'blob': {'blob_id':  ...
 'type': 'BLOB'}
(Pdb) c
> /path/to/venv/gkeepapi/lib/python3.5/site-packages/gkeepapi/node.py(1350)load()
-> self.blob = self.from_json(raw['blob'])
(Pdb) pp raw
# another normal dict
{'annotationsGroup': {'kind': 'notes#annotationsGroup'},
 'blob': {'blob_id': ...
...
 'type': 'BLOB'}
(Pdb) c
> /path/to/venv/gkeepapi/lib/python3.5/site-packages/gkeepapi/node.py(1350)load()
-> self.blob = self.from_json(raw['blob'])
(Pdb) pp raw
# an abnormal dict which doesn't have 'blob' key
{'annotationsGroup': {'kind': 'notes#annotationsGroup'},
 'id': '<ID>',
 'kind': 'notes#node',
 'nodeSettings': {'checkedListItemsPolicy': 'GRAVEYARD',
                  'graveyardState': 'EXPANDED',
                  'newListItemPlacement': 'BOTTOM'},
 'parentId': '<PARENT_ID>',
 'parentServerId': '<PARENT_SERVER_ID>',
 'serverId': '<SERVER_ID>',
 'timestamps': {'created': '2018-06-27T23:44:44.716Z',
                'kind': 'notes#timestamps',
                'updated': '2018-06-27T23:45:04.989Z'},
 'type': 'BLOB'}
(Pdb) c
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.5/pdb.py", line 1570, in run
    Pdb().run(statement, globals, locals)
  File "/usr/lib/python3.5/bdb.py", line 431, in run
    exec(cmd, globals, locals)
  File "<string>", line 1, in <module>
  File "/path/to/venv/gkeepapi/lib/python3.5/site-packages/gkeepapi/__init__.py", line 404, in login
    self.load(auth)
  File "/path/to/venv/gkeepapi/lib/python3.5/site-packages/gkeepapi/__init__.py", line 418, in load
    self.sync(True)
  File "/path/to/venv/gkeepapi/lib/python3.5/site-packages/gkeepapi/__init__.py", line 645, in sync
    self._parseNodes(changes['nodes'])
  File "/path/to/venv/gkeepapi/lib/python3.5/site-packages/gkeepapi/__init__.py", line 672, in _parseNodes
    node = _node.from_json(raw_node)
  File "/path/to/venv/gkeepapi/lib/python3.5/site-packages/gkeepapi/node.py", line 1450, in from_json
    node.load(raw)
  File "/path/to/venv/gkeepapi/lib/python3.5/site-packages/gkeepapi/node.py", line 1350, in load
    self.blob = self.from_json(raw['blob'])
KeyError: 'blob'
>>> 

The value of the key ‘parentId’ in the abnormal dict exactly matches the ID of the list to which I once failed to add the image.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure Blob Storage fails to authenticate: "Make sure the value ...
Hi I am trying to upload a binary file (a blob for an excel file, ... StorageException: The remote server returned an error:...
Read more >
Upload to blob always fails with authentication error #15232
I've run az login tons of times and can read all the data including from the blob. I'm calling the following command to...
Read more >
AzureStorage Blob Server failed to authenticate the request ...
In my case (python), had to encode the upload content from string to bytes. Not sure why the error message says this though:...
Read more >
Not able to create Microsoft Azure Blob storage V3 connection
Hello, I am facing issue while connecting to Microsoft Azure Blob storage V3 via IICS. I have entered all the correct details like...
Read more >
"The blob store <StoragePointRBS> threw an exception ...
When using the Move-SPSite or Backup-SPSite command, an error message similar to the one below is encountered:
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found