Skip to content

dfindexeddb.errors.ParserError: Unsupported header from "Version16" blink from Chrome v149 #86

Description

@aldennisa15
/lnk/tools/python-venvs/common-venv/bin/dfindexeddb blink --source blink_file --output json

Traceback (most recent call last):
  File "/lnk/tools/python-venvs/common-venv/bin/dfindexeddb", line 8, in <module>
    sys.exit(App())
             ^^^^^
  File "/home/nas-user/tools/python-venvs/common-venv/lib/python3.11/site-packages/dfindexeddb/indexeddb/cli.py", line 413, in App
    args.func(args)
  File "/home/nas-user/tools/python-venvs/common-venv/lib/python3.11/site-packages/dfindexeddb/indexeddb/cli.py", line 90, in BlinkCommand
    blink_value = blink.V8ScriptValueDecoder.FromBytes(buffer)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/nas-user/tools/python-venvs/common-venv/lib/python3.11/site-packages/dfindexeddb/indexeddb/chromium/blink.py", line 1060, in FromBytes
    return cls(data).Deserialize()
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/nas-user/tools/python-venvs/common-venv/lib/python3.11/site-packages/dfindexeddb/indexeddb/chromium/blink.py", line 1041, in Deserialize
    raise errors.ParserError("Unsupported header")
dfindexeddb.errors.ParserError: Unsupported header

blink_file was generated by Chrome "Version 149.0.7827.103 (Official Build) (64-bit)"

dfindexeddb -h reports Version 20260205.

A bit of debugging leads to chromium/v8.py:L93 where the blink file contains Version 16, but LATEST_VERSION is 15.

As a workaround, I've set LATEST_VERSION (L65) to 16 and it generates plausible looking json once again, instead of the ParserError.

My blink file comes from an old Chrome extension, so I'm assuming it isn't using any of the new features(?) from "blink version 16", but I'm guessing a proper fix will need to see what's new in v16 and be handled appropriately, not just changing LATEST_VERSION...

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions