#Frequently getting "refresh internal/external URL" when on my home network ... wanna fix it

1 messages ยท Page 1 of 1 (latest)

vestal kelp
#

When reconnecting to my home network, I frequently get the "unable to connect" message from the Android App' (see attached). If I click on the "refresh internal URL" it will fail and present the similar screen with the "refresh external URL". I click on "refresh external URL" and it bounces back to the "refresh internal URL". I can bounce back and forth between those two many times. Eventually I can get it to connect and load my default dashboard (more on that below).

Things I've tried/observed ...

  • followed all configuration doc's as best as I can understand them
  • searched forums
  • sometimes it will get my dashboard to load after click on refresh one or two time ... sometimes not and I can click refresh internal/external endlessly
  • if I turn my phone's WIFI off and back on again, that will usually resolve the issue for that attempt
  • looked at Companion App' troubleshooting logs on m phone ... it does show ServerConnectionInfo entries in the log that indicate the app' is using the internal URL
burnt obsidian
#

when you look at the logs what error message do you see?

#

that pop-up only shows up iif there is an error or the frontend does not respond that it connected within 10 seconds

vestal kelp
#

OK. Thanks for your time. I cannot find an error, but here are what seem to be the relevant ServerConnectionInfo entries.

11-16 13:34:32.534 7360 24427 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: true, usesWifi is: true
11-16 13:34:32.534 7360 24427 D ServerConnectionInfo: Using internal URL
11-16 13:34:32.534 7360 27323 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: true, usesWifi is: true
11-16 13:34:32.534 7360 27323 D ServerConnectionInfo: Using internal URL
11-16 13:34:32.536 7360 24427 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: true, usesWifi is: true
11-16 13:34:32.536 7360 24427 D ServerConnectionInfo: Using internal URL
11-16 13:34:32.536 7360 27323 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: true, usesWifi is: true
11-16 13:34:32.536 7360 27323 D ServerConnectionInfo: Using internal URL
11-16 13:34:32.537 7360 24427 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: true, usesWifi is: true
11-16 13:34:32.537 7360 24427 D ServerConnectionInfo: Using internal URL
11-16 13:34:32.538 7360 27323 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: true, usesWifi is: true
11-16 13:34:32.538 7360 27323 D ServerConnectionInfo: Using internal URL

#

Can you give an example of error format I can search for?

burnt obsidian
#

it wouldnt be listed tehre but would probably mention your URL directly

#

ServerConectionInfo wont contain an error

#

this will probably be WebViewActivity or similar

#

if you replicate teh pop-up and then check the logs immediately it would be one of the last entries there

vestal kelp
burnt obsidian
#

that woudl do it

#

looking upthe error code

#

the popup message you got is our generic one so not very helpful

#

are there any other errors?

#

also do you have trusted networks setup on the server?

vestal kelp
#

I cannot find other errorcodes in log ... how to verify "trusted networks"?

burnt obsidian
#

maybe try your local IP instead of homeassistant.local ?

burnt obsidian
#

android can be finicky with the local host names i find

vestal kelp
#

I have tried the local IP as well ... yes help me with steps to setup trusted network, please

burnt obsidian
#

sometimes teh issue is the user has trusted network setup and they did not login to the app

#

basicaly it lets you in teh app without logging in, however the app can only work on that network....the app requires you to login and not use trusted networks ๐Ÿ™‚

#

so you tried the IP address and you get the same issue?

#

what can you tell me about the local DNS setup?

#

the host look up error comes from the server side

#

but i wonder if you get that same error when the IP address is there

vestal kelp
#

I have one network, one router ... can't tell you much, but I can tell you the IP is reserved for homeassistant ... I can look at any router settings you suggest inspecting ... I'm currently trying to recreate issues with IP

#

Haven't been able to recreate it yet. Been forcing closed, and clearing cache in between attempt. I'm sure I've had this issue with the IP before as well, but possibly not since I configured a new router 6 days ago (this problem predated the new router ... not at all a new problem)

burnt obsidian
#

yea maybe the IP will show a better error, i wouldnt expect to see a host look up error if we are no longer using the host name

#

the only suggestion i have if you dont have a custom local DNS server is just to restart things like the HA host server and the network

vestal kelp
#

I do have the ability to customize DNS entries (new router is Ubiquiti EdgeOS). Perhaps I should just read the docs you linked in this chat, see if I missed anything, and then check back if I can capture errors with the internal URL configured with the IP address?

burnt obsidian
#

that may work, honestly i think the local IP should solve the issue ๐Ÿ™‚

vestal kelp
#

OK. Again, thanks for your time and willingness to help. Fingers crossed ... have nice day.

vestal kelp
#

OK. So I have setup trusted network, configured interal URL with IP ... and I was able to recreate the problem. Only error code in the log is the following, which seems to relate to an invalid path for one of my custom HACS cards that is installed ...

Line 537: 11-18 12:23:39.866 32216 32216 E WebviewActivity: onReceivedHttpError: 404 : Not Found for: http://192.168.1.120:8123/local/card-mod.js

burnt obsidian
#

youll need to correct that on your network, the app does not expect any of those errrs

#

tahts probably another cause of the pop-up that may have always been there earlier

#

the first one happened when the app tried to authenticate which is before this wouldve been hit

vestal kelp
#

hang on there ... I can't connect through my browser either ... something else is up