Bulk-inserting fails with ValueError for some entries

Bug #459724 reported by Markus Korn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
zeitgeist-firefox-extension
Confirmed
Medium
Unassigned

Bug Description

Somehow the encoding is strange, not sure exactly, this needs some experiments.

% firefox -no-remote -P default
Traceback (most recent call last):
  File "/usr/lib/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/<email address hidden>/chrome/content/zeitgeist-wrapper", line 139, in <module>
    main()
  File "/usr/lib/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/<email address hidden>/chrome/content/zeitgeist-wrapper", line 129, in main
    return bulk(options.bulk, options.tags)
  File "/usr/lib/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/<email address hidden>/chrome/content/zeitgeist-wrapper", line 79, in bulk
    data = json.loads(content.replace("\\", "\\\\"))
  File "/usr/lib/python2.6/json/__init__.py", line 307, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.6/json/decoder.py", line 319, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.6/json/decoder.py", line 336, in raw_decode
    obj, end = self._scanner.iterscan(s, **kw).next()
  File "/usr/lib/python2.6/json/scanner.py", line 55, in iterscan
    rval, next_pos = action(m, context)
  File "/usr/lib/python2.6/json/decoder.py", line 183, in JSONObject
    value, end = iterscan(s, idx=end, context=context).next()
  File "/usr/lib/python2.6/json/scanner.py", line 55, in iterscan
    rval, next_pos = action(m, context)
  File "/usr/lib/python2.6/json/decoder.py", line 217, in JSONArray
    value, end = iterscan(s, idx=end, context=context).next()
  File "/usr/lib/python2.6/json/scanner.py", line 55, in iterscan
    rval, next_pos = action(m, context)
  File "/usr/lib/python2.6/json/decoder.py", line 227, in JSONArray
    raise ValueError(errmsg("Expecting , delimiter", s, end))
ValueError: Expecting , delimiter: line 1 column 12074 (char 12074)

Markus Korn (thekorn)
Changed in zeitgeist-firefox-extension:
importance: Undecided → Medium
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.