Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page is not fully working untill reconfigure #63

Closed
kingoffoxes opened this issue Dec 27, 2022 · 14 comments
Closed

Page is not fully working untill reconfigure #63

kingoffoxes opened this issue Dec 27, 2022 · 14 comments

Comments

@kingoffoxes
Copy link

TBeam - 2.0.8.090e166-d (had the same issue on 2.0.7.91ff7b9 so updated)

Connecting to TBeam via direct IP in browser (FF 108.0.1), selecting meshtastic.local without TLS connects to the node but there is no functionality and the node is "unknown" - see attachment. (same issue with Edge 108.0.1462.54 )

Fix is to Ctrl-K and select Debug > Reconfigure.
This works and i can see information and send messages.

image

Incoming messages do not display until i send a message from the webpage but that may be an unrelated fault.

@kingoffoxes kingoffoxes changed the title Page is not fully configured untill reconfigure Page is not fully working untill reconfigure Dec 27, 2022
@sachaw
Copy link
Member

sachaw commented Dec 28, 2022

Can you please let me know what errors you are seeing in your console when it fails to configure?

@kingoffoxes
Copy link
Author

Seeing this in the console

[HTTPS:I] New connection. Socket FID=52
[HTTPS:I] Request: GET / (FID=52)
[ 27882][E][vfs_api.cpp:104] open(): /littlefs/static/index.html does not exist, no permits for creation
[HTTPS:I] Request: GET /index.ed76384f.js (FID=52)
[HTTPS:I] New connection. Socket FID=53
[HTTPS:I] Request: GET /index.c409c94b.css (FID=53)
[ 28084][E][vfs_api.cpp:104] open(): /littlefs/static/index.ed76384f.js does not exist, no permits for creation
[ 29617][E][vfs_api.cpp:104] open(): /littlefs/static/index.c409c94b.css does not exist, no permits for creation
[HTTPS:I] Client closed connection, FID=52
[HTTPS:I] Client closed (FID=52, cstate=2)
[HTTPS:I] Connection closed. Socket FID=52
[HTTPS:I] Client closed connection, FID=53
[HTTPS:I] Client closed (FID=53, cstate=2)
[HTTPS:I] Connection closed. Socket FID=53
[HTTPS:I] New connection. Socket FID=52
[HTTPS:I] Request: GET /Logo_Black.svg (FID=52)
[ 29794][E][vfs_api.cpp:104] open(): /littlefs/static/Logo_Black.svg does not exist, no permits for creation
snip -
[HTTPS:I] New connection. Socket FID=53
[HTTPS:I] Request: GET /hotspot-detect.html (FID=53)
[ 37784][E][vfs_api.cpp:104] open(): /littlefs/static/hotspot-detect.html does not exist, no permits for creation
[ 37788][E][vfs_api.cpp:104] open(): /littlefs/static/hotspot-detect.html.gz does not exist, no permits for creation
snip -
[HTTPS:I] Request: GET /hotspot-detect.html (FID=53)
[ 47962][E][vfs_api.cpp:104] open(): /littlefs/static/hotspot-detect.html does not exist, no permits for creation
[ 47966][E][vfs_api.cpp:104] open(): /littlefs/static/hotspot-detect.html.gz does not exist, no permits for creation

Here is the debug from Firefox. i have marked where i manually hit Ctrl-K reconfigure to get it to load properly.
image

@sachaw
Copy link
Member

sachaw commented Dec 28, 2022

Can you show me the console tab of your browser

@sachaw
Copy link
Member

sachaw commented Dec 28, 2022

Also, what are the response headers for the requests that had cors errors, they should not be appearing as per https://github.com/meshtastic/firmware/blob/master/src/mesh/http/ContentHandler.cpp#L684

@sachaw
Copy link
Member

sachaw commented Jan 1, 2023

Can you please try the hosted version at https://client.meshtastic.org

@kingoffoxes
Copy link
Author

Looks like the same issue,
Remote or Local / TLS enabled / Disabled.

image

@sachaw
Copy link
Member

sachaw commented Jan 2, 2023

That's a super outdated version, please clear your cache and try it again.

@kingoffoxes
Copy link
Author

Thanks clearing the cache improved the situation somewhat, that also fixed an issue where i couldn't see new incoming messages until i sent one. (only fixed for the online version - direct web connection to radio still does this)
So this does "work" but i have to manually enter the IP of the radio.
i can ping and resolve meshtastic.local to the IP address on this PC so I'm not thinking its a DNS issue.

image

[DEBUG] iHttpConnection.ping
Attempting device ping. index.ed76384f.js:233:82
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://meshtastic.local/hotspot-detect.html. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 200.

[ERROR] iHttpConnection.ping
❌ NetworkError when attempting to fetch resource. index.ed76384f.js:236:84
E6 http://192.168.1.73/index.ed76384f.js:236
log http://192.168.1.73/index.ed76384f.js:238
ping http://192.168.1.73/index.ed76384f.js:238
(Async: promise callback)
ping http://192.168.1.73/index.ed76384f.js:238
connect http://192.168.1.73/index.ed76384f.js:238
connect http://192.168.1.73/index.ed76384f.js:238
(Async: setTimeout handler)
connect http://192.168.1.73/index.ed76384f.js:238
connect http://192.168.1.73/index.ed76384f.js:238
(Async: setTimeout handler)
connect http://192.168.1.73/index.ed76384f.js:238
connect http://192.168.1.73/index.ed76384f.js:238
(Async: setTimeout handler)
connect http://192.168.1.73/index.ed76384f.js:238
connect http://192.168.1.73/index.ed76384f.js:238
(Async: setTimeout handler)
connect http://192.168.1.73/index.ed76384f.js:238
connect http://192.168.1.73/index.ed76384f.js:238
(Async: setTimeout handler)
connect http://192.168.1.73/index.ed76384f.js:238
connect http://192.168.1.73/index.ed76384f.js:238
(Async: setTimeout handler)
connect http://192.168.1.73/index.ed76384f.js:238
connect http://192.168.1.73/index.ed76384f.js:238
(Async: setTimeout handler)
connect http://192.168.1.73/index.ed76384f.js:238
connect http://192.168.1.73/index.ed76384f.js:238
(Async: setTimeout handler)
connect http://192.168.1.73/index.ed76384f.js:238
connect http://192.168.1.73/index.ed76384f.js:238
(Async: setTimeout handler)
connect http://192.168.1.73/index.ed76384f.js:238
connect http://192.168.1.73/index.ed76384f.js:238
(Async: setTimeout handler)
connect http://192.168.1.73/index.ed76384f.js:238
connect http://192.168.1.73/index.ed76384f.js:238
(Async: setTimeout handler)
connect http://192.168.1.73/index.ed76384f.js:238
connect http://192.168.1.73/index.ed76384f.js:238
(Async: setTimeout handler)
connect http://192.168.1.73/index.ed76384f.js:238
connect http://192.168.1.73/index.ed76384f.js:238
(Async: setTimeout handler)
connect http://192.168.1.73/index.ed76384f.js:238
connect http://192.168.1.73/index.ed76384f.js:238
(Async: setTimeout handler)
connect http://192.168.1.73/index.ed76384f.js:238

Thanks

@sachaw
Copy link
Member

sachaw commented Jan 3, 2023

Can you please try the latest chrome stable?
That cors errors should have been sorted in the latest version, so I'd like to rule your browser out.

@kingoffoxes
Copy link
Author

Switched to my laptop with Chrome. Version 108.0.5359.125 (Official Build) (64-bit)
found that i couldn't connect to the radio at all via the client.meshtastic.org via DNS or IP. (Ctrl-K reconfigure had no effect)

image

If i point chrome address bar to the local IP directly and also manually enter the IP i am able to connect.
It seems to have cached the page from the web as its at a more recent version than whats on the ESP32.

@sachaw
Copy link
Member

sachaw commented Jan 6, 2023

Looks like a DNS issue, just confirming using the hosted version: https://client.meshtastic.org and entering your device ip directly, you are able to connect?
If that is the case, you may not have multicast dns on or multiple Meshtastic devices registering the same hostname: meshtastic.local

@kingoffoxes
Copy link
Author

Thanks,
Confirming i'm using https://client.meshtastic.org/
i am able to resolve my radio IP when i ping meshtastic.local in command prompt.
When will the current online version of the web be placed into the firmware? may help in testing comparatively.

@sachaw
Copy link
Member

sachaw commented Jan 9, 2023

Could be that chrome isn't picking up your local dns servers, or there overwritten.
The latest webUI gets automatically bundled every time a new firmware is realeased.
I'll be adding PWA support to the webUI soon so people can lessen there reliance on the bundled version for offline use.

@sachaw sachaw closed this as completed Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants