Suddenly started having this error:
Supply OAuth key either using environment variable or via explicit argument, not both.
I am trying to serve an app with authentication
I used to have these environment variables on my machine and just served them using:
panel serve app.py --dev --port=8000 --allow-websocket-origin=$BOKEH_ALLOW_WS_ORIGIN --oauth-provider=$PANEL_OAUTH_PROVIDER --oauth-key=$PANEL_OAUTH_KEY --oauth-secret=$PANEL_OAUTH_SECRET --cookie-secret=$PANEL_COOKIE_SECRET
I have since tried to make two files
one that has all the env variables that looks like:
export BOKEH_ALLOW_WS_ORIGIN=...
export BOKEH_ALLOW_WS_ORIGIN=...
export PANEL_OAUTH_PROVIDER=...
export PANEL_OAUTH_KEY=...
export PANEL_OAUTH_SECRET=...
and another file that has:
source secret.sh
panel serve app.py --dev --port=8000 \
--allow-websocket-origin=$BOKEH_ALLOW_WS_ORIGIN \
--oauth-provider=$PANEL_OAUTH_PROVIDER \
--oauth-key=$PANEL_OAUTH_KEY\
--oauth-secret=$PANEL_OAUTH_SECRET \
--cookie-secret=$PANEL_COOKIE_SECRET
but started getting the above error…
Since that, I cant even run it with the first command directly in terminal, i always get the error that i should supply the variables using env variable or explicit args…
doesnt even work if i supply explicit args directly in the panel serve command…
i have tried to unset all of the above env variables, but then it only works if I explicitly set the ags…
any suggestions?