You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wrote an application to query data from a database table_name = 'prices'
if I run on a computer from pycharm, everything works, I get the data from the table.
but if I create a command flet build web -vv
and start a local server to check python -m http.server --directory .\build\web
I open it in the browser http://localhost:8000/
when receiving data and database, browser error in console.
python.js:23 Python engine initialized!
pyodide.asm.js:9 WebSocket connection to 'ws://localhost:3306/' failed: WebSocket is closed before the connection is established.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Question
I wrote an application to query data from a database table_name = 'prices'
if I run on a computer from pycharm, everything works, I get the data from the table.
but if I create a command flet build web -vv
and start a local server to check python -m http.server --directory .\build\web
I open it in the browser http://localhost:8000/
when receiving data and database, browser error in console.
python 3.12
requirements : uvicorn, websockets, wsproto, peewee, pymysql, flet
flet 0.21.2
the server with the database is working and can be tested.
Code sample
Error message
------------------------------------------------------
Beta Was this translation helpful? Give feedback.
All reactions