phanpy icon indicating copy to clipboard operation
phanpy copied to clipboard

Error on Settings

Open Fastidious opened this issue 1 year ago • 5 comments

Describe the bug Using Phanpy with GoToSocial. When going to "Settings" I am getting a small bubble at the top of the page stating:

Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.

Can't enable notifications either. I get:

Failed to update subcription. Please try again.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Settings'.
  2. See error on bubble at the top of the page.
  3. Click on "Allow from Anyone", and pick "Follow", etc.
  4. See error on bubble at the top of the page.

Expected behavior I would expect for things to work.

Desktop (please complete the following information):

  • OS: Ubuntu Linux 24.04
  • Browser: Chrome
  • Version: 125.0.6422.112

Not sure if this is something not supported by GoToSocial.

Fastidious avatar Jun 03 '24 15:06 Fastidious

This is happening at https://m.ferengi.one/ running bleeding edgeish (2024.06.03.6d7eddc). Issue doesn't show on https://phanpy.social/.

Fastidious avatar Jun 03 '24 16:06 Fastidious

Hmm, well, clearing the cache fixed this issue. I have two accounts configured, maybe trying to set notifications for both caused the issue? In any case, it is now gone. Will close this issue later today.

Fastidious avatar Jun 03 '24 16:06 Fastidious

Well, now it is the notifications they aren’t working. Tick the boxes and they do not stick. All this is happening on settings.

Fastidious avatar Jun 03 '24 21:06 Fastidious

I might have gotten confused all along. GoToSocial doesn’t support pushed notifications yet, so I figure the notifications setting never worked with it. Sorry about the noise. 😞

Fastidious avatar Jun 03 '24 21:06 Fastidious

Hmm I could add a few checks in the code — it just assumes that the web push API is supported. Probably need to figure out how to know if the instance supports web push 🤔

cheeaun avatar Jun 04 '24 03:06 cheeaun