snort icon indicating copy to clipboard operation
snort copied to clipboard

Error: Cannot read properties of undefined (reading 'id') on /messages page

Open ghost opened this issue 6 months ago • 0 comments

Description: Visiting the /messages tab causes the entire page to break with the following error:

Something went wrong.

Error: Cannot read properties of undefined (reading 'id')

Stack trace:

TypeError: Cannot read properties of undefined (reading 'id')
    at https://snort.social/assets/index-C2fWcOW-.js:3083:12582
    at Array.filter (<anonymous>)
    ...

This seems to occur during a .filter() operation, likely on a message-related array where one or more elements are undefined or missing an id.

To Reproduce:

  1. Open Snort web client (I also deleted the site settings/cache)
  2. Login with nsec
  3. Navigate to https://snort.social/messages
  4. Observe crash

Expected behavior: The messages page should load correctly or gracefully handle invalid data.

Environment:

  • OS: Ubuntu 24.04 LTS
  • Browser: Google Chrome (latest stable)

Screenshot: Image

And the main page sometimes would throw the same error or won't load:

Image

The same in Incognito browser mode, maybe this issue is coming from some relays that aren't enabling CORS or are down?

Image

Image

Thanks for your work on Snort!

ghost avatar May 12 '25 07:05 ghost