You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
seems request[session_name] can't store session object anymore.
// as metioned in #4
tested on
python 3.9
sanic 21.6.2
BTW, ecrypt/signed session status into client cookie is a good idea
for applications without stringent security requirements.
err detail
⚠️ 500 — Internal Server Error
argument of type 'Request' is not iterable
Traceback of test_app (most recent call last):
TypeError: argument of type 'Request' is not iterable
File /home/chen/.local/lib/python3.9/site-packages/sanic/app.py, line 749, in handle_request
response = await self._run_request_middleware(
File /home/chen/.local/lib/python3.9/site-packages/sanic/app.py, line 1116, in _run_request_middleware
response = await response
File /home/chen/.local/lib/python3.9/site-packages/sanic_cookiesession/__init__.py, line 34, in load_session
if session_name in request:
TypeError: argument of type 'Request' is not iterable while handling path /
a workaround
just for sanic21, py3.9
// I don't know much about other versions, compatibility may not considered
The text was updated successfully, but these errors were encountered:
yurenchen000
changed the title
error type 'Request' is not iterable on sanic 21
error type 'Request' is not iterable on sanic 21 // about request[session_name]
Jan 27, 2022
yurenchen000
changed the title
error type 'Request' is not iterable on sanic 21 // about request[session_name]
request[session_name]: error type 'Request' is not iterable on sanic 21
Jan 27, 2022
description
seems
request[session_name]
can't store session object anymore.// as metioned in #4
tested on
BTW, ecrypt/signed session status into client cookie is a good idea
for applications without stringent security requirements.
err detail
a workaround
just for sanic21, py3.9
// I don't know much about other versions, compatibility may not considered
diff with 3cc1535
The text was updated successfully, but these errors were encountered: