Skip to content
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 errors in logs #33

Closed
ara4n opened this issue Dec 23, 2016 · 2 comments
Closed

unicode errors in logs #33

ara4n opened this issue Dec 23, 2016 · 2 comments

Comments

@ara4n
Copy link
Member

ara4n commented Dec 23, 2016

Unhandled Error
Traceback (most recent call last):
  File "/home/vectoris/venv-sydent/local/lib/python2.7/site-packages/twisted/protocols/basic.py", line 571, in dataReceived
    why = self.lineReceived(line)
  File "/home/vectoris/venv-sydent/local/lib/python2.7/site-packages/twisted/web/http.py", line 1656, in lineReceived
    self.allContentReceived()
  File "/home/vectoris/venv-sydent/local/lib/python2.7/site-packages/twisted/web/http.py", line 1731, in allContentReceived
    req.requestReceived(command, path, version)
  File "/home/vectoris/venv-sydent/local/lib/python2.7/site-packages/twisted/web/http.py", line 827, in requestReceived
    self.process()
--- <exception caught here> ---
  File "/home/vectoris/venv-sydent/local/lib/python2.7/site-packages/twisted/web/server.py", line 189, in process
    self.render(resrc)
  File "/home/vectoris/venv-sydent/local/lib/python2.7/site-packages/twisted/web/server.py", line 238, in render
    body = resrc.render(self)
  File "/home/vectoris/venv-sydent/local/lib/python2.7/site-packages/twisted/web/resource.py", line 250, in render
    return m(request)
  File "sydent/http/servlets/lookupservlet.py", line 42, in render_GET
    sgassoc = globalAssocStore.signedAssociationStringForThreepid(medium, address)
  File "sydent/db/threepid_associations.py", line 73, in signedAssociationStringForThreepid
    (medium, address, time_msec(), time_msec()))
sqlite3.ProgrammingError: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings.
@richvdh
Copy link
Member

richvdh commented Jan 15, 2020

related: #188

@richvdh
Copy link
Member

richvdh commented Sep 6, 2021

I strongly suspect this was python2-specific.

@richvdh richvdh closed this as completed Sep 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants