Open trivedihoney opened 1 week ago
We can not reproduce the behaviour: After accepting a self-signed certificate the page shows without logging errors.
Are there any errors in the js console of the browser? Does it also happen without NiceGUI (eg. pure FastAPI & Uvicorn):
#!/usr/bin/env python3
import uvicorn
from fastapi import FastAPI
from fastapi.responses import PlainTextResponse
app = FastAPI()
@app.get("/", response_class=PlainTextResponse)
def index():
return "Hello, World!"
if __name__ == "__main__":
uvicorn.run(app, host="0.0.0.0", port=443, ssl_certfile="cert.pem", ssl_keyfile="key.pem")
Description
I'm currently using port 443 and SSL certificates in ui.run to run the niceGUI server. And it works. Site becomes accessible using the domain name. However, I have a logger, initialized and the logger is logging multiple errors as shown below while browsing website pages.
I tried a minimal code as below and still faced the same issue. I am not sure why this error is occurring.