invalid length or type code ?

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 3.3
    • Component/s: None
    • None
    • Environment:
      Heroku
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Hi All, I've recently started getting InvalidBSON: Invalid length or type code errors while reading documents from a cursor.

      It only happens when my scripts are running against Heroku

      I'm running mongo --version 3.0.12 in both places. Python and pymongo versions listed below.

      Not sure what else to include. I can't read the offending documents from a cursor in python, so I can't identify what's wrong with them.

      $ heroku run python -c "import sys; print(sys.version)"
      Running python -c "import sys; print(sys.version)" on ⬢ kiddom-crm2... up, run.1157 (Standard-1X)
      2.7.12 (default, Jun 28 2016, 18:48:18)
      [GCC 4.8.4]

      $ heroku run python -c "import pymongo; print(pymongo.version); print(pymongo.has_c())"
      Running python -c "import pymongo; print(pymongo.version); print(pymongo.has_c())" on ⬢ kiddom-crm2... up, run.2613 (Standard-1X)
      3.3.0
      True

              Assignee:
              Bernie Hackett
              Reporter:
              Jordan Feldstein
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: