web icon indicating copy to clipboard operation
web copied to clipboard

[Bug]: An unhandled error occurred. At refresh of client.meshtastic.org tab.

Open roberthadow opened this issue 2 months ago • 3 comments

Before submitting

  • [x] I have searched existing issues to make sure this bug hasn't already been reported
  • [x] I have updated to the latest version of the software to verify the issue still exists
  • [x] I have cleared cache/cookies/storage or tried in a private/incognito window (if applicable)

Hardware

Heltec V3

Connection Type

HTTP

Local or Hosted

https://client.meshtastic.org

Firmware Version

2.6.11.60ec05e and 2.7.12.45f15b8

Operating System

Ubuntu 24.04.3 LTS

Browser

Chrome Version 140.0.7339.127 (Official Build) (64-bit)

Expected Behavior

I sought to refresh one of five browser tabs running client.meshtastic.org. I wanted to see what the power status was on one of my solar-powered units. The web page does not display power condition without a refresh.

Actual Behavior

Error message: Cannot read properties of undefined (reading 'num')

Stack trace: TypeError: Cannot read properties of undefined (reading 'num') at G (https://client.meshtastic.org/index-9RHnKvRw.js:642:172390) at GL (https://client.meshtastic.org/index-9RHnKvRw.js:643:387) at Fb (https://client.meshtastic.org/index-9RHnKvRw.js:100:48430) at cv (https://client.meshtastic.org/index-9RHnKvRw.js:100:71296) at YA (https://client.meshtastic.org/index-9RHnKvRw.js:100:81687) at A_ (https://client.meshtastic.org/index-9RHnKvRw.js:100:117553) at H6 (https://client.meshtastic.org/index-9RHnKvRw.js:100:116593) at Iv (https://client.meshtastic.org/index-9RHnKvRw.js:100:116423) at y_ (https://client.meshtastic.org/index-9RHnKvRw.js:100:113196) at B_ (https://client.meshtastic.org/index-9RHnKvRw.js:100:125189)

Steps to Reproduce

(1) Establish five tabs, each attached to a different tcp address. (2) Process a bunch of --sendtext messages by CLI. Wait a while. (3) Try to reload a tab.

Relevant console output

TypeError: Cannot read properties of undefined (reading 'num')
    at G (https://client.meshtastic.org/index-9RHnKvRw.js:642:172390)
    at GL (https://client.meshtastic.org/index-9RHnKvRw.js:643:387)
    at Fb (https://client.meshtastic.org/index-9RHnKvRw.js:100:48430)
    at cv (https://client.meshtastic.org/index-9RHnKvRw.js:100:71296)
    at YA (https://client.meshtastic.org/index-9RHnKvRw.js:100:81687)
    at A_ (https://client.meshtastic.org/index-9RHnKvRw.js:100:117553)
    at H6 (https://client.meshtastic.org/index-9RHnKvRw.js:100:116593)
    at Iv (https://client.meshtastic.org/index-9RHnKvRw.js:100:116423)
    at y_ (https://client.meshtastic.org/index-9RHnKvRw.js:100:113196)
    at B_ (https://client.meshtastic.org/index-9RHnKvRw.js:100:125189)

Screenshots

No response

Additional Context

No response

roberthadow avatar Oct 23 '25 18:10 roberthadow

After writing my bug report, I established a new browswer tab with client.meshtastic.org and pointed it at the appropriate URL, which in my case was 192.168.1.201. The web page painted properly with some data properly rendered, including firmware version number Firmware: 2.7.11.ee68575 and a node list. The shortName is "UNK". The longName is "Unknown". Voltage isn "N/A". Only one channel of two is displayed.

roberthadow avatar Oct 23 '25 18:10 roberthadow

After writing my bug report, I established a new browswer tab with client.meshtastic.org and pointed it at the appropriate URL, which in my case was 192.168.1.201. The web page painted properly with some data properly rendered, including firmware version number Firmware: 2.7.11.ee68575 and a node list. The shortName is "UNK". The longName is "Unknown". Voltage isn "N/A". Only one channel of two is displayed.

Sounds like another client is alreay connected to the node and the web client session is not receiving all the packets. Likely unrelated to the issue.

philon- avatar Oct 23 '25 18:10 philon-

@philon- Subsequently, I launched client.meshtastic.org again in the same tab. No, the URL was not duplicated. At this second retry, the page populated fully with all data accurate. You are probably correct; the two matters are not related.

Your observation raises a nice-to-have enhancement. In th old days, when the web server was resident on the meshtastic device, the unique URL appeared in the tab itself. Now I have five tabs all labeled client.meshtastic.org. Perhaps when one hovers over the tab, the headline would be "Meshtastic Web" and the second line the IP4 address, or better yet the shortName and longName.

roberthadow avatar Oct 24 '25 15:10 roberthadow