[GH-ISSUE #438] Error opening https://ntfy.sh/app and switching to "Subscribe to Topic" #336

Closed
opened 2026-05-07 00:23:13 +02:00 by BreizhHardware · 3 comments

Originally created by @KikyTokamuro on GitHub (Oct 11, 2022).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/438

image

Stacktrace:

TypeError: Cannot read properties of undefined (reading 'map')
  at SubscribePage (components/SubscribeDialog.js:50:60)
  at Xh (../node_modules/react-dom/cjs/react-dom.production.min.js:136:167)
  at Wk (../node_modules/react-dom/cjs/react-dom.production.min.js:336:290)
  at uj (../node_modules/react-dom/cjs/react-dom.production.min.js:388:280)
  at uj (../node_modules/react-dom/cjs/react-dom.production.min.js:319:280)
  at uj (../node_modules/react-dom/cjs/react-dom.production.min.js:179:280)
  at Ok (../node_modules/react-dom/cjs/react-dom.production.min.js:87:271)
  at Dk (../node_modules/react-dom/cjs/react-dom.production.min.js:299:273)
  at jg (../node_modules/react-dom/cjs/react-dom.production.min.js:104:127)
  at Ek (../node_modules/react-dom/cjs/react-dom.production.min.js:272:267)

TypeError: Cannot read properties of undefined (reading 'map')
  at at Bf (https://ntfy.sh/static/js/main.04a41eb3.js:2:882676)
  at     at div
  at     at https://ntfy.sh/static/js/main.04a41eb3.js:2:10064
  at     at https://ntfy.sh/static/js/main.04a41eb3.js:2:368512
  at     at https://ntfy.sh/static/js/main.04a41eb3.js:2:10064
  at     at div
  at     at https://ntfy.sh/static/js/main.04a41eb3.js:2:10064
  at     at n (https://ntfy.sh/static/js/main.04a41eb3.js:2:360714)
  at     at https://ntfy.sh/static/js/main.04a41eb3.js:2:437996
  at     at Er (https://ntfy.sh/static/js/main.04a41eb3.js:2:432355)
  at     at div
  at     at https://ntfy.sh/static/js/main.04a41eb3.js:2:10064
  at     at https://ntfy.sh/static/js/main.04a41eb3.js:2:395146
  at     at https://ntfy.sh/static/js/main.04a41eb3.js:2:434993
  at     at https://ntfy.sh/static/js/main.04a41eb3.js:2:441375
  at     at https://ntfy.sh/static/js/main.04a41eb3.js:2:10064
  at     at https://ntfy.sh/static/js/main.04a41eb3.js:2:824595
  at     at Df (https://ntfy.sh/static/js/main.04a41eb3.js:2:887083)
  at     at qm (https://ntfy.sh/static/js/main.04a41eb3.js:2:931014)
  at     at div
  at     at https://ntfy.sh/static/js/main.04a41eb3.js:2:10064
  at     at https://ntfy.sh/static/js/main.04a41eb3.js:2:368512
  at     at https://ntfy.sh/static/js/main.04a41eb3.js:2:10064
  at     at div
  at     at https://ntfy.sh/static/js/main.04a41eb3.js:2:10064
  at     at https://ntfy.sh/static/js/main.04a41eb3.js:2:755149
  at     at nav
  at     at https://ntfy.sh/static/js/main.04a41eb3.js:2:10064
  at     at https://ntfy.sh/static/js/main.04a41eb3.js:2:343342
  at     at e (https://ntfy.sh/static/js/main.04a41eb3.js:2:930625)
  at     at div
  at     at https://ntfy.sh/static/js/main.04a41eb3.js:2:10064
  at     at https://ntfy.sh/static/js/main.04a41eb3.js:2:343342
  at     at $b (https://ntfy.sh/static/js/main.04a41eb3.js:2:1071264)
  at     at Pm (https://ntfy.sh/static/js/main.04a41eb3.js:2:915764)
  at     at Am (https://ntfy.sh/static/js/main.04a41eb3.js:2:917870)
  at     at n (https://ntfy.sh/static/js/main.04a41eb3.js:2:971528)
  at     at i (https://ntfy.sh/static/js/main.04a41eb3.js:2:974709)
  at     at Z (https://ntfy.sh/static/js/main.04a41eb3.js:2:344007)
  at     at S (https://ntfy.sh/static/js/main.04a41eb3.js:2:343734)
  at     at C (https://ntfy.sh/static/js/main.04a41eb3.js:2:344119)
  at     at Rm (https://ntfy.sh/static/js/main.04a41eb3.js:2:917130)
  at     at sv (https://ntfy.sh/static/js/main.04a41eb3.js:2:970224)
  at     at Suspense
  at     at Xb

Originally created by @KikyTokamuro on GitHub (Oct 11, 2022). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/438 ![image](https://user-images.githubusercontent.com/9868440/195044802-1c315c97-668b-4ae6-bb3e-a6da0b69c1d1.png) Stacktrace: ``` TypeError: Cannot read properties of undefined (reading 'map') at SubscribePage (components/SubscribeDialog.js:50:60) at Xh (../node_modules/react-dom/cjs/react-dom.production.min.js:136:167) at Wk (../node_modules/react-dom/cjs/react-dom.production.min.js:336:290) at uj (../node_modules/react-dom/cjs/react-dom.production.min.js:388:280) at uj (../node_modules/react-dom/cjs/react-dom.production.min.js:319:280) at uj (../node_modules/react-dom/cjs/react-dom.production.min.js:179:280) at Ok (../node_modules/react-dom/cjs/react-dom.production.min.js:87:271) at Dk (../node_modules/react-dom/cjs/react-dom.production.min.js:299:273) at jg (../node_modules/react-dom/cjs/react-dom.production.min.js:104:127) at Ek (../node_modules/react-dom/cjs/react-dom.production.min.js:272:267) TypeError: Cannot read properties of undefined (reading 'map') at at Bf (https://ntfy.sh/static/js/main.04a41eb3.js:2:882676) at at div at at https://ntfy.sh/static/js/main.04a41eb3.js:2:10064 at at https://ntfy.sh/static/js/main.04a41eb3.js:2:368512 at at https://ntfy.sh/static/js/main.04a41eb3.js:2:10064 at at div at at https://ntfy.sh/static/js/main.04a41eb3.js:2:10064 at at n (https://ntfy.sh/static/js/main.04a41eb3.js:2:360714) at at https://ntfy.sh/static/js/main.04a41eb3.js:2:437996 at at Er (https://ntfy.sh/static/js/main.04a41eb3.js:2:432355) at at div at at https://ntfy.sh/static/js/main.04a41eb3.js:2:10064 at at https://ntfy.sh/static/js/main.04a41eb3.js:2:395146 at at https://ntfy.sh/static/js/main.04a41eb3.js:2:434993 at at https://ntfy.sh/static/js/main.04a41eb3.js:2:441375 at at https://ntfy.sh/static/js/main.04a41eb3.js:2:10064 at at https://ntfy.sh/static/js/main.04a41eb3.js:2:824595 at at Df (https://ntfy.sh/static/js/main.04a41eb3.js:2:887083) at at qm (https://ntfy.sh/static/js/main.04a41eb3.js:2:931014) at at div at at https://ntfy.sh/static/js/main.04a41eb3.js:2:10064 at at https://ntfy.sh/static/js/main.04a41eb3.js:2:368512 at at https://ntfy.sh/static/js/main.04a41eb3.js:2:10064 at at div at at https://ntfy.sh/static/js/main.04a41eb3.js:2:10064 at at https://ntfy.sh/static/js/main.04a41eb3.js:2:755149 at at nav at at https://ntfy.sh/static/js/main.04a41eb3.js:2:10064 at at https://ntfy.sh/static/js/main.04a41eb3.js:2:343342 at at e (https://ntfy.sh/static/js/main.04a41eb3.js:2:930625) at at div at at https://ntfy.sh/static/js/main.04a41eb3.js:2:10064 at at https://ntfy.sh/static/js/main.04a41eb3.js:2:343342 at at $b (https://ntfy.sh/static/js/main.04a41eb3.js:2:1071264) at at Pm (https://ntfy.sh/static/js/main.04a41eb3.js:2:915764) at at Am (https://ntfy.sh/static/js/main.04a41eb3.js:2:917870) at at n (https://ntfy.sh/static/js/main.04a41eb3.js:2:971528) at at i (https://ntfy.sh/static/js/main.04a41eb3.js:2:974709) at at Z (https://ntfy.sh/static/js/main.04a41eb3.js:2:344007) at at S (https://ntfy.sh/static/js/main.04a41eb3.js:2:343734) at at C (https://ntfy.sh/static/js/main.04a41eb3.js:2:344119) at at Rm (https://ntfy.sh/static/js/main.04a41eb3.js:2:917130) at at sv (https://ntfy.sh/static/js/main.04a41eb3.js:2:970224) at at Suspense at at Xb ```
BreizhHardware 2026-05-07 00:23:13 +02:00
Author
Owner

@KikyTokamuro commented on GitHub (Oct 11, 2022):

Time passed and the error did not appear again.

<!-- gh-comment-id:1274483149 --> @KikyTokamuro commented on GitHub (Oct 11, 2022): Time passed and the error did not appear again.
Author
Owner

@binwiederhier commented on GitHub (Oct 11, 2022):

Time passed and the error did not appear again.

Well people do say time heals all wounds. Hehe.

No but anyway, this should not happen. I'll check it out later. Thank you for reporting.

<!-- gh-comment-id:1274558075 --> @binwiederhier commented on GitHub (Oct 11, 2022): > Time passed and the error did not appear again. Well people do say time heals all wounds. Hehe. No but anyway, this should not happen. I'll check it out later. Thank you for reporting.
Author
Owner

@binwiederhier commented on GitHub (Oct 11, 2022):

The stack trace implies that props.subscriptions in github.com/binwiederhier/ntfy@947a4c1e74/web/src/components/SubscribeDialog.js (L60) is undefined, which is injected at the very top via useLiveQuery github.com/binwiederhier/ntfy@947a4c1e74/web/src/components/App.js (L69), which is a function provided by Dexie.js (the persistence library I use).

I have no idea how this happened, sadly. I'm gonna leave this open for a while and if it doesn't happen to anyone else I'll likely just close it. 🤷 -- Sorry I can't help.

<!-- gh-comment-id:1274769948 --> @binwiederhier commented on GitHub (Oct 11, 2022): The stack trace implies that `props.subscriptions` in https://github.com/binwiederhier/ntfy/blob/947a4c1e74af3b988926996e2301567bb361752b/web/src/components/SubscribeDialog.js#L60 is undefined, which is injected at the very top via `useLiveQuery` https://github.com/binwiederhier/ntfy/blob/947a4c1e74af3b988926996e2301567bb361752b/web/src/components/App.js#L69, which is a function provided by Dexie.js (the persistence library I use). I have no idea how this happened, sadly. I'm gonna leave this open for a while and if it doesn't happen to anyone else I'll likely just close it. :shrug: -- Sorry I can't help.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#336
No description provided.