YunoHost-Apps / firefish_ynh

Forked from Misskey and made by a passionate team of developers, Firefish is all about listening to its community and making people happy with great software.
GNU Affero General Public License v3.0
1 stars 6 forks source link

Service worker returns Error 403 - Forbidden #6

Open csolisr opened 10 months ago

csolisr commented 10 months ago

Describe the bug

The service worker, which is used by Firefish to fetch updates in the background, is not working properly, sending an Error 403 ("Forbidden").

Context

Steps to reproduce

  1. Log into the website
  2. Wait for a few minutes. Notice that the automatic note updates are not working.
  3. Check on your browser's console. There will be repeated warnings that a service worker is not connecting.

Expected behavior

The service workers should work as expected, fetching data in a regular basis.

Logs

From the console log:

Firefox could not establish a connection with the server at wss://sns.example.net/streaming?i=[redacted]&_t=[redacted].
The connection with wss://sns.example.net/streaming?i=[redacted]&_t=[redacted] was interrupted while the page was being loaded.
GET | wss://sns.example.net/streaming?i=[redacted]&_t=[redacted]
Status: 403 Forbidden
Version: HTTP/1.1
Transferred: 599 B (size 0 B)
DNS Resolution: System