# Enable Push Notification generates error

**URL:** https://meta.discourse.org/t/enable-push-notification-generates-error/192009
**Category:** Bug
**Tags:** push-notifications
**Created:** [May 29, 2021, 8:39am UTC](https://meta.discourse.org/t/enable-push-notification-generates-error/192009 "2021-05-29T08:39:25Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [May 29, 2021, 8:39am UTC](https://meta.discourse.org/t/enable-push-notification-generates-error/192009/1 "2021-05-29T08:39:25Z")

</div>

Hello,

On the latest [06e1af2b1d](https://github.com/discourse/discourse/commits/06e1af2b1d368212df2da9d18a32571b2c30184e)

Repro:

1. Go to [Notifications](https://meta.discourse.org/my/preferences/notifications)
2. Enable Notifications (The success notification not arrive)
3. Check console

**By the way the notifications seems to also works after this.**

Error in console:

 ![Screenshot 2021-05-29 at 10.30.30](https://global.discourse-cdn.com/meta/original/3X/f/a/fa2b733c254ad8a86f454b1f2213d69f6a4d8066.png)

* * *

**If i uncheck this option on meta** ⬇  
 ![Screenshot 2021-05-29 at 10.33.09](https://global.discourse-cdn.com/meta/original/3X/6/d/6d3478c6789743105780dd2c0499fc6e2a4c2e84.png)

Then the success notification arrive successfully and the console is errorless.

Thank you! 🙂

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [May 29, 2021, 1:18pm UTC](https://meta.discourse.org/t/enable-push-notification-generates-error/192009/3 "2021-05-29T13:18:11Z")

</div>

I can reproduce this, taking a look at it.

Looks like a regression introduced at

[https://github.com/discourse/discourse/pull/13156](https://github.com/discourse/discourse/pull/13156)

This here should fix it

[https://github.com/discourse/discourse/pull/13293](https://github.com/discourse/discourse/pull/13293)

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [June 5, 2021, 8:00am UTC](https://meta.discourse.org/t/enable-push-notification-generates-error/192009/4 "2021-06-05T08:00:01Z")

</div>

This topic was automatically closed after 12 hours. New replies are no longer allowed.
