dnplus / streamlit-oauth

Simple OAuth Component for Streamlit App
MIT License
111 stars 18 forks source link

Error in Streamlit Cloud / Google App Engine #2

Closed sudowoodo200 closed 1 year ago

sudowoodo200 commented 1 year ago

In either environments, the login pop up simply navigates to the duplicate of the original app page and fails to login. I get this error

2023-05-29 05:35:28.368 ComponentRequestHandler: GET /home/appuser/venv/lib/python3.9/site-packages/streamlit_oauth/frontend/dist read error

Traceback (most recent call last):

  File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/web/server/component_request_handler.py", line 55, in get

    with open(abspath, "rb") as file:

IsADirectoryError: [Errno 21] Is a directory: '/home/appuser/venv/lib/python3.9/site-packages/streamlit_oauth/frontend/dist
sudowoodo200 commented 1 year ago

It now freezes at a blank page

image
dnplus commented 1 year ago

Solved with CORS fixed.

vinnividivicci commented 7 months ago

Hello, I'm getting exactly this same error with streamlit-oauth 0.1.4:


Traceback (most recent call last):

  File "/home/adminuser/venv/lib/python3.11/site-packages/streamlit/web/server/component_request_handler.py", line 55, in get

    with open(abspath, "rb") as file:

         ^^^^^^^^^^^^^^^^^^^

IsADirectoryError: [Errno 21] Is a directory: '/home/adminuser/venv/lib/python3.11/site-packages/streamlit_oauth/frontend/dist'

I tried disabling both CORS and Xsrf but it didn't change anything.

I'm running the simple app on Streamlit Cloud.

Thanks for looking into this.

dnplus commented 7 months ago

Hello, I'm getting exactly this same error with streamlit-oauth 0.1.4:


Traceback (most recent call last):

  File "/home/adminuser/venv/lib/python3.11/site-packages/streamlit/web/server/component_request_handler.py", line 55, in get

    with open(abspath, "rb") as file:

         ^^^^^^^^^^^^^^^^^^^

IsADirectoryError: [Errno 21] Is a directory: '/home/adminuser/venv/lib/python3.11/site-packages/streamlit_oauth/frontend/dist'

I tried disabling both CORS and Xsrf but it didn't change anything.

I'm running the simple app on Streamlit Cloud.

Thanks for looking into this.

Can you share how you disable the CORS and Xsrf?

The original post: https://discuss.streamlit.io/t/new-component-streamlit-oauth/40364/12?u=dnplus