librelist archives

« back to archive

When commenting, clicking submit causes errors?

When commenting, clicking submit causes errors?

From:
Hong Xu
Date:
2015-01-30 @ 07:58
Hi,

I installed isso on my site recently, but whenever I tried to comment, I
can see the following error in the log:

    Traceback (most recent call last):
      File "/usr/local/lib/python2.7/dist-packages/isso/__init__.py", line
133, in dispatch
        response = handler(request.environ, request, **values)
      File 
"/usr/local/lib/python2.7/dist-packages/isso/views/comments.py", line 84, 
in dec
        return func(self, env, req, *args, **kwargs)
      File 
"/usr/local/lib/python2.7/dist-packages/isso/views/__init__.py", line 45, 
in dec
        return func(cls, env, req, *args, **kwargs)
      File 
"/usr/local/lib/python2.7/dist-packages/isso/views/comments.py", line 218,
in new
        value=self.isso.sign([rv["id"], sha1(rv["text"])]),
      File "/usr/local/lib/python2.7/dist-packages/isso/__init__.py", line
114, in sign
        return self.signer.dumps(obj)
      File "/usr/local/lib/python2.7/dist-packages/itsdangerous.py", line 
566, in dumps
        rv = self.make_signer(salt).sign(payload)
      File "/usr/local/lib/python2.7/dist-packages/itsdangerous.py", line 
412, in sign
        return value + sep + self.get_signature(value)
      File "/usr/local/lib/python2.7/dist-packages/itsdangerous.py", line 
347, in get_signature
        key = self.derive_key()
      File "/usr/local/lib/python2.7/dist-packages/itsdangerous.py", line 
334, in derive_key
        self.secret_key).digest()
    TypeError: cannot concatenate 'str' and 'buffer' objects

The comments were still be sent, but no notification will be received,
with neither smtp or stdout notifier.

Does anyone know why this happens?

Thanks!
Hong