# ERR\_INVALID\_RESPONSE trying to get push\_service\_worker.js

**URL:** https://meta.discourse.org/t/err-invalid-response-trying-to-get-push-service-worker-js/55064
**Category:** Self-hosting
**Created:** [January 2, 2017, 6:59pm UTC](https://meta.discourse.org/t/err-invalid-response-trying-to-get-push-service-worker-js/55064 "2017-01-02T18:59:59Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![dani14\_96](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dani14_96/32/121285_2.png) [@dani14\_96](https://meta.discourse.org/u/dani14_96)
#### Post date: [January 2, 2017, 6:59pm UTC](https://meta.discourse.org/t/err-invalid-response-trying-to-get-push-service-worker-js/55064/1 "2017-01-02T18:59:59Z")

</div>

I’m running Discourse in a docker container behind a reverse proxy with Apache, so my app.yml config file is  
expose:  
- “8080:80” # http  
- “4443:443” # https  
The reverse proxy works for http connections. I installed a ssl certificate with letsencrypt as explained [here](https://meta.discourse.org/t/howto-setup-discourse-with-lets-encrypt-and-apache-ssl/46139), and it works too.  
Chrome Developer Tools show that if fails to GET push-service-worker.js  
 ![](https://global.discourse-cdn.com/meta/optimized/3X/4/a/4a197d404f878c92e0107989d7b0ec44a6a4c4da_2_690x38.png)  
Browsing [https://foro.soybiotec.es/push-service-worker.js](https://foro.soybiotec.es/push-service-worker.js) in Chrome gives Discourse custom error 404 page. What could be the problem here?

---

<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: [January 2, 2017, 7:05pm UTC](https://meta.discourse.org/t/err-invalid-response-trying-to-get-push-service-worker-js/55064/2 "2017-01-02T19:05:54Z")

</div>

Why are you exposing 4443 if https is done on Apache?

---

<div class="post-metadata">

### Author: ![dani14\_96](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dani14_96/32/121285_2.png) [@dani14\_96](https://meta.discourse.org/u/dani14_96)
#### Post date: [January 2, 2017, 7:09pm UTC](https://meta.discourse.org/t/err-invalid-response-trying-to-get-push-service-worker-js/55064/3 "2017-01-02T19:09:42Z")

</div>

@Falco At first I thought the way to have a https would be to have another reverse proxy, same as for http.

---

<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: [January 2, 2017, 7:16pm UTC](https://meta.discourse.org/t/err-invalid-response-trying-to-get-push-service-worker-js/55064/4 "2017-01-02T19:16:41Z")

</div>

Did you enable the plugin on settings? Also is `force_ssl` enabled?

---

<div class="post-metadata">

### Author: ![dani14\_96](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dani14_96/32/121285_2.png) [@dani14\_96](https://meta.discourse.org/u/dani14_96)
#### Post date: [January 2, 2017, 7:43pm UTC](https://meta.discourse.org/t/err-invalid-response-trying-to-get-push-service-worker-js/55064/5 "2017-01-02T19:43:19Z")

</div>

I had just uninstalled the plugin for testing. Installed and activated and error disappears. Sorry for being so dummy. I thought I had found the reason why Push Notifications don’t work for me.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 8, 2024, 12:45pm UTC](https://meta.discourse.org/t/err-invalid-response-trying-to-get-push-service-worker-js/55064/6 "2024-06-08T12:45:11Z")

</div>

This topic was automatically closed after 2713 days. New replies are no longer allowed.
