Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-430

UnicodeDecodeError in bson\objectid

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.4
    • Affects Version/s: 2.3
    • Component/s: None
    • None
    • Environment:
      windows os ru_ru, python 2.7, pymongo 2.3

      Get UnicodeDecodeError in bson\objectid ( bson / objectid.py line 47)

      machine_hash.update(socket.gethostname().encode()) when in machine name exists non ascii characters.

      ---------
      Version with machine_hash.update(socket.gethostname()) work fine

            Assignee:
            bernie@mongodb.com Bernie Hackett
            Reporter:
            evg Evghen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: