/gist:ceca82d079d192ce9185 Secret
Created
September 16, 2015 10:23
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Exception & trace : | |
result = collection.find_one(query) | |
File "/Users/dav009/source/pywork32/lib/python3.4/site-packages/pymongo/collection.py", line 798, in find_one | |
for result in cursor.limit(-1): | |
File "/Users/dav009/source/pywork32/lib/python3.4/site-packages/pymongo/cursor.py", line 976, in __next__ | |
if len(self.__data) or self._refresh(): | |
File "/Users/dav009/source/pywork32/lib/python3.4/site-packages/pymongo/cursor.py", line 908, in _refresh | |
self.__read_preference)) | |
File "/Users/dav009/source/pywork32/lib/python3.4/site-packages/pymongo/cursor.py", line 839, in __send_message | |
codec_options=self.__codec_options) | |
File "/Users/dav009/source/pywork32/lib/python3.4/site-packages/pymongo/helpers.py", line 128, in _unpack_response | |
result["data"] = bson.decode_all(response[20:], codec_options) | |
bson.errors.InvalidBSON: 'utf-8' codec can't decode byte 0xed in position 954: invalid continuation byte | |
Entry: | |
{ | |
.... | |
"description": "The olive is a species of small tree in the family Oleaceae, found in much of Africa, the Mediterranean Basin from Portugal to the Levant, the Arabian Peninsula, and southern Asia as far east as China, as well as the Canary Islands, Mauritius and Réunion. The species is cultivated in many places and considered naturalized in France, Corsica, Greece, Albania, Crimea, Egypt, Iran, Iraq, Israel, Italy, Jordan, Palestine, Syria, Lebanon, Java, Norfolk Island, California and Bermuda.\\nThe olive's fruit, also called the olive, is of major agricultural importance in the Mediterranean region as the source of olive oil. The tree and its fruit give its name to the plant family, which also includes species such as lilacs, jasmine, Forsythia and the true ash trees. The word derives from Latin ŏlīva which is cognate with the Greek ἐλαία and ἔλαιον. The oldest attested forms of the latter two words in Greek are respectively the Mycenaean 𐀁𐀨𐀷, e-ra-wa, and 𐀁𐀨𐀺, e-ra-wo or 𐀁𐁉𐀺, e-rai-wo, written in the Linear B syllabic script. The word \\\"oil\\\" in multiple languages ultimately derives from the name of this tree and its fruit.", | |
.... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment