Spaces:
Running
get error after login: TypeError: set_cookie() got an unexpected keyword argument 'SameSite'
[E 2023-04-19 18:06:18.849 ServerApp] Uncaught exception POST /login?next=%2Flab%3F__theme%3Dlight%26__sign%3DeyJhbGciOiJFZERTQSJ9.eyJzdWIiOiI0aWVyL2p1cHl0ZXJsYWIiLCJleHAiOjE2ODIwMDY3NzAsImlzcyI6Imh1Z2dpbmdmYWNlLW1vb24ifQ.MaH_kcY4S7u2IKFW5loJ_cFVr-NSr0hHAb3gw60utnaIlgLaweKlzm0VRFLxYBCD_GbTSkmU16_KbEN6EJUnBQ (10.16.3.117)
HTTPServerRequest(protocol='http', host='4ier-jupyterlab.hf.space', method='POST', uri='/login?next=%2Flab%3F__theme%3Dlight%26__sign%3DeyJhbGciOiJFZERTQSJ9.eyJzdWIiOiI0aWVyL2p1cHl0ZXJsYWIiLCJleHAiOjE2ODIwMDY3NzAsImlzcyI6Imh1Z2dpbmdmYWNlLW1vb24ifQ.MaH_kcY4S7u2IKFW5loJ_cFVr-NSr0hHAb3gw60utnaIlgLaweKlzm0VRFLxYBCD_GbTSkmU16_KbEN6EJUnBQ', version='HTTP/1.1', remote_ip='10.16.3.117')
Traceback (most recent call last):
File "/home/user/miniconda/lib/python3.9/site-packages/tornado/web.py", line 1767, in _execute
result = method(*self.path_args, **self.path_kwargs)
File "/home/user/miniconda/lib/python3.9/site-packages/jupyter_server/auth/login.py", line 80, in post
self.identity_provider.set_login_cookie(self, user)
File "/home/user/miniconda/lib/python3.9/site-packages/jupyter_server/auth/identity.py", line 350, in set_login_cookie
handler.set_secure_cookie(cookie_name, self.user_to_cookie(user), *cookie_options)
File "/home/user/miniconda/lib/python3.9/site-packages/tornado/web.py", line 756, in set_signed_cookie
self.set_cookie(
TypeError: set_cookie() got an unexpected keyword argument 'SameSite'
[E 2023-04-19 18:06:18.850 ServerApp] {
"Host": "4ier-jupyterlab.hf.space",
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
"Referer": "https://4ier-jupyterlab.hf.space/login?next=%2Flab%3F__theme%3Dlight%26__sign%3DeyJhbGciOiJFZERTQSJ9.eyJzdWIiOiI0aWVyL2p1cHl0ZXJsYWIiLCJleHAiOjE2ODIwMDY3NzAsImlzcyI6Imh1Z2dpbmdmYWNlLW1vb24ifQ.MaH_kcY4S7u2IKFW5loJ_cFVr-NSr0hHAb3gw60utnaIlgLaweKlzm0VRFLxYBCD_GbTSkmU16_KbEN6EJUnBQ",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36 Edg/112.0.1722.48"
}
Ah thanks, I found a fix for it. Will update
Should be working now! Feel free to reopen if not.
It works! Thanks!