from gluon.contrib.redis_utils import RConn
rconn = RConn('localhost:6379')
from gluon.contrib.redis_session import RedisSession
sessiondb = RedisSession(redis_conn=rconn, with_lock=True, session_expiry=3600)
session.connect(request, response, db = sessiondb)
Traceback (most recent call last):
File "/gestaopatio/web2py/gluon/main.py", line 460, in wsgibase
session._try_store_in_db(request, response)
File "/gestaopatio/web2py/gluon/globals.py", line 1238, in _try_store_in_db
record_id = table.insert(**dd)
File "/gestaopatio/web2py/gluon/contrib/redis_session.py", line 146, in insert
pipe.execute()
File "/usr/local/lib/python2.7/dist-packages/redis/client.py", line 3691, in execute
return execute(conn, stack, raise_on_error)
File "/usr/local/lib/python2.7/dist-packages/redis/client.py", line 3557, in _execute_transaction
if EMPTY_RESPONSE not in options])
File "/usr/local/lib/python2.7/dist-packages/redis/connection.py", line 761, in pack_commands
for chunk in self.pack_command(*cmd):
File "/usr/local/lib/python2.7/dist-packages/redis/connection.py", line 737, in pack_command
for arg in imap(self.encoder.encode, args):
File "/usr/local/lib/python2.7/dist-packages/redis/connection.py", line 107, in encode
raise DataError("Invalid input of type: 'bool'. Convert to a "
DataError: Invalid input of type: 'bool'. Convert to a byte, string or number first.
I think the problem is the last line, but not added any custom field do session table