rawpython / remi

Python REMote Interface library. Platform independent. In about 100 Kbytes, perfect for your diet.
Apache License 2.0
3.48k stars 401 forks source link

the mysterious startup log #444

Closed occoder closed 3 years ago

occoder commented 3 years ago

When I initially start up the web server, the log is as follows

remi.server      INFO     Started httpserver http://0.0.0.0:80/
remi.request     INFO     built UI (path=/)
remi.request     DEBUG    get: /
127.0.0.1 - - [26/Apr/2021 13:46:50] "GET / HTTP/1.1" 200 -
remi.server.ws   INFO     connection established: ('127.0.0.1', 58668)
remi.server.ws   DEBUG    handle
remi.server.ws   DEBUG    handshake
remi.server.ws   INFO     handshake complete
remi.request     DEBUG    get: /favicon.ico
remi.server.ws   DEBUG    send_message: 0279314705... -> ('127.0.0.1', 58668)
remi.server.ws   DEBUG    send_message: 3... -> ('127.0.0.1', 58668)
remi.server.ws   DEBUG    on_message: connected
remi.server.ws   DEBUG    send_message: 3... -> ('127.0.0.1', 58668)
remi.server.ws   DEBUG    on_message: callback
remi.request     DEBUG    App.onresize event occurred. Width:2327 Height:1209
remi.server.ws   DEBUG    send_message: 3... -> ('127.0.0.1', 58668)
remi.server.ws   DEBUG    on_message: callback
remi.request     DEBUG    App.onload event occurred
remi.server.ws   DEBUG    send_message: 3... -> ('127.0.0.1', 58668)
remi.server.ws   DEBUG    on_message: callback
remi.request     DEBUG    App.onpageshow event occurred
remi.server.ws   DEBUG    send_message: 3... -> ('127.0.0.1', 58668)
remi.server.ws   DEBUG    on_message: callback
remi.request     DEBUG    App.onerror event occurred in webpage: 

MESSAGE:Uncaught TypeError: Cannot read property 'length' of undefined
SOURCE:http://127.0.0.1/
LINENO:230
COLNO:50\ERROR:{}

remi.request     DEBUG    get: /favicon.ico
remi.server.ws   DEBUG    send_message: 1279314687... -> ('127.0.0.1', 58668)
remi.server.ws   DEBUG    send_message: 1279314691... -> ('127.0.0.1', 58668)

I have no clue how comes the following mysterious message?

MESSAGE:Uncaught TypeError: Cannot read property 'length' of undefined
SOURCE:http://127.0.0.1/
LINENO:230
COLNO:50\ERROR:{}
dddomodossola commented 3 years ago

Hello @occoder does it occurs with remi examples? What is the application that generate this error?

occoder commented 3 years ago

Hello @occoder does it occurs with remi examples? What is the application that generate this error?

No. It occurred on my program and is odd that it does not show up every time I start up the web server. It's difficult to interpret such log info. Where could possibly go wrong?

dddomodossola commented 3 years ago

@occoder Maybe when you restart your application, you leave the webpage open. When the webserver becomes ready, the page has some widgets that are "expired". If this is the case, it should never occur if you close the page and the webserver before to restart the application. However, if this is the case, it should not be a problem.