Net :: ERR_INTERNET_DISCONNECTED - How to fix the error

358 views
Skip to first unread message

Mickey

unread,
May 14, 2017, 2:32:41 PM5/14/17
to MIT App Inventor Forum

Hello everyone?

If the internet hangs when url loads in Web_viewer

"Net :: ERR_INTERNET_DISCONNECTED" I get an error.

Is there a way to make Web_viewer invisible when this error occurs?

Checking the internet connection at startup (when running)

I applied it for reference.


However, If the internet is interrupted during the process, the URL address will be displayed if an error occurs
For that reason, I want to hide Web_viewer in case of error.


Please let me know if you know how to solve it.


Abraham Getzler

unread,
May 14, 2017, 3:13:23 PM5/14/17
to MIT App Inventor Forum
Here are two possible things to try,
neither one of which have I actually tried ...

Check the response code in the Web1.GotText event after probing
the URL with a Web (not Web Viewer) request.
It probably won't be 200.

Alternatively, use the Screen1 event that catches errors.
Maybe it catches Web Viewer errors?
(Don't know.)

ABG

Taifun

unread,
May 14, 2017, 5:15:40 PM5/14/17
to MIT App Inventor Forum
try to use a clock component and check the webviewer.title during loading and in case the title is "webpage not available" or similar (you have to check for the correct title), then display your "nice" error message

Taifun

Mickey

unread,
May 16, 2017, 4:32:19 AM5/16/17
to mitappinv...@googlegroups.com


Thank you!! 


Reply all
Reply to author
Forward
0 new messages