# 单个用户通知失败

**URL:** <https://meta.discourse.org/t/failing-notifications-for-single-user/234397>\
**Category:** Support\
**Tags:** notifications\
**Created:** [2022年七月29日 13:09 UTC](https://meta.discourse.org/t/failing-notifications-for-single-user/234397 "2022-07-29T13:09:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Genyus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/genyus/32/119655_2.png) [@Genyus](https://meta.discourse.org/u/Genyus)\
**Post date:** [2022年七月29日 13:09 UTC](https://meta.discourse.org/t/failing-notifications-for-single-user/234397/1 "2022-07-29T13:09:22Z")

</div>

我的论坛上有一个奇怪的问题，特定用户（我的个人管理员帐户）的通知从未加载。打开用户面板只会显示一个持续的旋转器：

 ![Screenshot 2022-07-29 at 14.02.02](https://global.discourse-cdn.com/meta/original/4X/9/9/0/9901beffcc02f08d647afb2047df7df86c435be7.png)

同时，控制台中显示以下错误：

```plaintext
Uncaught TypeError: Cannot read properties of undefined (reading 'dasherize')
    at n.itemHtml (application-ac4559e6c00dd9dba9d43d1d45d2ae68f856d62dbf2cf8586ad869941beeb2f9.js:1:3129645)
    at application-ac4559e6c00dd9dba9d43d1d45d2ae68f856d62dbf2cf8586ad869941beeb2f9.js:1:3132025
    at vendor-62026cfc8949fd8385062ba2d06d8ba217d1d9bc9fa1ceab497820ea41f11764.js:36:186831
    at t.Mixin.create.c.forEach (vendor-62026cfc8949fd8385062ba2d06d8ba217d1d9bc9fa1ceab497820ea41f11764.js:36:186564)
    at t.Mixin.create.c.map (vendor-62026cfc8949fd8385062ba2d06d8ba217d1d9bc9fa1ceab497820ea41f11764.js:36:186792)
    at n.html (application-ac4559e6c00dd9dba9d43d1d45d2ae68f856d62dbf2cf8586ad869941beeb2f9.js:1:3131999)
    at n.value (application-ac4559e6c00dd9dba9d43d1d45d2ae68f856d62dbf2cf8586ad869941beeb2f9.js:1:3203549)
    at n.value (application-ac4559e6c00dd9dba9d43d1d45d2ae68f856d62dbf2cf8586ad869941beeb2f9.js:1:3199618)
    at s (vendor-62026cfc8949fd8385062ba2d06d8ba217d1d9bc9fa1ceab497820ea41f11764.js:81:9828)
    at t.exports (vendor-62026cfc8949fd8385062ba2d06d8ba217d1d9bc9fa1ceab497820ea41f11764.js:81:9966)

```

其中有问题的函数是：

```javascript
        itemHtml: function(e) {
            var t = this.site.notificationLookup[e.notification_type];
            return this.attach("".concat(t.dasherize(), "-notification-item"), e, {}, {
                fallbackWidgetName: "default-notification-item"
            })
        }

```

如果有所帮助，调试显示错误是在 `e.notification_type` 的值为 800（这似乎非常奇怪？）且 `t` 返回 undefined 时抛出的。

据我所知，这不会影响网站上的任何其他帐户，但我希望能够找出原因？
