Panel Installation V1.3.6 - Authentication Error

Versions: panel v1.3.6 and param v2.0.1
Some reason I’ve been having this error, it works on one machine and not the other - both of which using Generic Provider:

2024-02-01 09:25:49,549 Starting Bokeh server version 3.2.0 (running on Tornado 6.2)
2024-02-01 09:25:49,550 User authentication hooks provided (no default user)
2024-02-01 09:25:49,551 Bokeh app running at: http://localhost:5006/app
2024-02-01 09:25:49,553 Starting Bokeh server with process id: xxxx
2024-02-01 09:25:55,581 Uncaught exception GET /login?next=%2Fapp (::1)
HTTPServerRequest(protocol=‘http’, host=‘localhost:5006’, method=‘GET’, uri=‘/login?next=%2Fapp’, version=‘HTTP/1.1’, remote_ip=‘::1’)
Traceback (most recent call last):
File “C:\Python\lib\site-packages\tornado\web.py”, line 1713, in _execute
result = await result
File “C:\Python\lib\site-packages\panel\auth.py”, line 388, in get
await self.get_authenticated_user(**params)
File “C:\Python\lib\site-packages\panel\auth.py”, line 163, in get_authenticated_user
self.authorize_redirect(**params)
File “C:\Python\lib\site-packages\tornado\auth.py”, line 586, in authorize_redirect
handler.redirect(url_concat(url, args))
File “C:\Python\lib\site-packages\tornado\httputil.py”, line 643, in url_concat
url = urlunparse(
File “C:\Users.…\AppData\Local\Programs\Python\Python310\lib\urllib\parse.py”, line 499, in urlunparse
_coerce_args(*components))
File “C:\Users.…\AppData\Local\Programs\Python\Python310\lib\urllib\parse.py”, line 125, in _coerce_args
raise TypeError(“Cannot mix str and non-str arguments”)
TypeError: Cannot mix str and non-str arguments
2024-02-01 09:25:55,584 ERROR: panel.auth - Generic OAuth provider encountered unexpected error: Cannot mix str and non-str arguments
2024-02-01 09:25:55,588 500 GET /login?next=%2Fapp (::1) 7.94ms

Backstory: Earlier when v1.3.6 was the latest version, I upgraded on one machine and proceeded fine. Later today, I wanted to match the same dependency on another machine. It didn’t work due to the aforementioned error. I created a virtual environment to remove any dependency issue and followed these versions:

panel==1.3.4
param==2.0.1
pandas==2.0.3
plotly==5.14.1
bitarray
numpy==1.23.5
seaborn
pyodbc
sqlalchemy
fastparquet
pyarrow
cryptography
openpyxl

@philippjfr do you know where the dependency lies in? It’s really important.