I have
class Map(db.Model):
urlHash= db.ByteStringProperty()
hasher = hashlib.sha256()
hasher.update(staticMapUrl)
urlHash = hasher.digest()
query = db.Query(models.Map)
query = query.filter('urlHash =', urlHash)
results = query.fetch(1)
and this type of query tries to decode the urlHash to a string, throwing an exception
UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xfe in position 0: ordinal not in range(128)
Looks like it will work if you explicitly make the hash into a
ByteString: