-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unicode bug #4
Comments
…d yet). If the feed had no time or update time a exception was raised after parsing.
Have you found the solution for this bug ? I get the same thing, and I'm really not sure what's going on.. it seems it's in SQLAlchemy, but I'm not sure.. |
I have not written any code to solve this, but the problem is that the data in the feed is not unicode, and the data loaded from the feed has to be converted to unicode somewhere before being passed to any DB stuff. |
Some more exceptions, saving them here for later.
|
Exception in thread Thread-12:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 552, in bootstrap_inner
self.run()
File "/home/sis13/Dropbox/PyCharm/FeedServer/feedserver/feedstorer.py", line 98, in run
add_entry(entry, feed.id)
File "/home/sis13/Dropbox/PyCharm/FeedServer/feedserver/feedstorer.py", line 28, in add_entry
stored_ent = db_session.query(Entry).filter_by(link=entry.get("link")).first()
File "/usr/local/lib/python2.7/dist-packages/SQLAlchemy-0.8.1-py2.7.egg/sqlalchemy/orm/query.py", line 2145, in first
ret = list(self[0:1])
File "/usr/local/lib/python2.7/dist-packages/SQLAlchemy-0.8.1-py2.7.egg/sqlalchemy/orm/query.py", line 2012, in __getitem
return list(res)
File "/usr/local/lib/python2.7/dist-packages/SQLAlchemy-0.8.1-py2.7.egg/sqlalchemy/orm/loading.py", line 72, in instances
rows = [process[0](row, None) for row in fetch]
File "/usr/local/lib/python2.7/dist-packages/SQLAlchemy-0.8.1-py2.7.egg/sqlalchemy/orm/loading.py", line 447, in instance
populate_state(state, dict, row, isnew, only_load_props)
File "/usr/local/lib/python2.7/dist-packages/SQLAlchemy-0.8.1-py2.7.egg/sqlalchemy/orm/loading.py", line 301, in populate_state
populator(state, dict_, row)
File "/usr/local/lib/python2.7/dist-packages/SQLAlchemy-0.8.1-py2.7.egg/sqlalchemy/orm/strategies.py", line 150, in fetch_col
dict_[key] = row[col]
File "/usr/local/lib/python2.7/dist-packages/SQLAlchemy-0.8.1-py2.7.egg/sqlalchemy/engine/result.py", line 89, in getitem
return processor(self._row[index])
File "/usr/local/lib/python2.7/dist-packages/SQLAlchemy-0.8.1-py2.7.egg/sqlalchemy/processors.py", line 66, in process
return decoder(value, errors)[0]
File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 254-255: unexpected end of data
The text was updated successfully, but these errors were encountered: