bleumink / streamlit-keycloak

User authentication and single sign-on in your Streamlit app using Keycloak
MIT License
59 stars 11 forks source link

'/streamlit_keycloak/frontend/public/bootstrap.min.css.map': No such file or directory #19

Open gandalfb opened 1 year ago

gandalfb commented 1 year ago

Thank you for this component.

After solving the local development integration with keycloak with

"Realm Settings" -> "Security Defenses" -> "Content-Security-Policy" to

frame-src 'self'; frame-ancestors 'self' http://localhost:8501 localhost; object-src 'none';

I am able to use this. For now the demo code is working, but somehow I am receiving a 404 for a file not being there.

streamlit 1.26.0

streamlit-keycloak 1.1.1

2023-08-30 21:37:25.489 ComponentRequestHandler: GET [..]/.venv/lib/python3.11/site-packages/streamlit_keycloak/frontend/public/bootstrap.min.css.map read error
Traceback (most recent call last):
  File "[..]/.venv/lib/python3.11/site-packages/streamlit/web/server/component_request_handler.py", line 55, in get
    with open(abspath, "rb") as file:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '[..]/.venv/lib/python3.11/site-packages/streamlit_keycloak/frontend/public/bootstrap.min.css.map'
bleumink commented 1 year ago

This should be easily fixable on my end by including the sourcemap as well. Does this crash your app or is it just a warning?

gandalfb commented 1 year ago

Thanks for the quick response.

It seems to work but throws an exception for each login increasing the bill from Sentry ;-)

OOub commented 1 year ago

Got the same issue here. Prevents my streamlit page from loading.

mpattke721 commented 11 months ago

Same for me, what the status here?

bakahoui commented 10 months ago

Same for me too! Any help on this issue?

jonnyhoff commented 8 months ago

This should be easily fixable on my end by including the sourcemap as well. Does this crash your app or is it just a warning?

Same issue for me but the crashes my app.

HerveMignot commented 2 months ago

Map files are loaded only when the browser debug window is open. See Bootstrap trying to load map file. How to disable it? Do I need to do it?. Issues with the streamlit app may not be due to this error.