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

UnicodeDecodeError in bson\objectid

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.4
    • Component/s: None
    • Labels:
      None
    • Environment:
      windows os ru_ru, python 2.7, pymongo 2.3

      Description

      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

        Attachments

          Activity

            People

            Assignee:
            behackett Bernie Hackett
            Reporter:
            evg Evghen
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: