cheeaun / phanpy

A minimalistic opinionated Mastodon web client
https://phanpy.social
MIT License
1.04k stars 99 forks source link

All mentions fails to load. #469

Open snail-coupe opened 6 months ago

snail-coupe commented 6 months ago

Describe the bug A clear and concise description of what the bug is.

Whenever I try to view All mentions I get an error message about Unable to load.

Private mentions work fine, as does seeing mentions in my notifications.

To Reproduce Steps to reproduce the behavior:

  1. Go to Mentions
  2. See error message - "Unable to load mentions."
  3. Tap "Private"
  4. See "private" mentions
  5. Tap "All"
  6. See only private mentions
  7. Scroll down
  8. Get same error.

Expected behavior I see all mentions

Screenshots Screenshot_2024-03-25-19-32-23-050_com.vivaldi.browser-edit.jpg

Smartphone (please complete the following information):

Vivaldi 6.6.3291.38

Android 13; M2101K6G Build/TKQ1.221013.002

(Redmi Note 10 Pro)

Additional context I'll try and see if I can reproduce on my laptop later (in which case I can check what response my instance is giving to the request)

snail-coupe commented 6 months ago

Just tried on my laptop and I get the same symptoms:

I pulled up the dev tools and I can see the response to the request looks sensible, and it immediately looks like it requests 5 specific statuses.

(Also, that JSON is so verbose!)

image

Vivaldi: 6.6.3271.53 (Stable channel) (64-bit) 64bit Win11Pro 23H2

For completeness I also tried Chrome on my phone which also failed to load, and Edge on my laptop, although I realise these are all Chromium based.

Edge looked like it worked, but it was my admin account which originally had no mentions until I made a test one. That did work, but when I added my regular account it didn't for my regular account - related to number of mentions?

Looking again, and double checking the debug console rather than the network view, it looks like there are a bunch of failed requests for avatars from the cache - which is odd because they exist, along with warnings like the following:

 The FetchEvent for "https://mstdn.crmbl.uk/system/accounts/avatars/109/562/968/071/317/537/original/72bcec66440cd8b8.png" resulted in a network error response: an "opaque" response was used for a request whose type is not no-cors
Promise.then (async)        
(anonymous) @   Router.js:58
snail-coupe commented 6 months ago

Oddly it all seems to be working now. I'm not sure what's different but given even I can't reproduce now it may be worth parking this ticket.

Fastidious commented 6 months ago

I bet it is related to the Mastodon instance you use. Mine is a small one, and at times it is either handling plenty of traffic, or running administrative jobs (or both), and I experience the same behaviour. I don't think it is Phanpy.

snail-coupe commented 6 months ago

Yeah. It's pretty much a single user (plus bots) but also a fairly cheap and cheerful VPS so I could believe it was just loaded at the time

jackysee commented 5 months ago

I also experience this. All mentions fails to load. The network tab looks good. Console no error. I'm using Firefox nightly image

cheeaun commented 5 months ago

@jackysee is it possible to check the Console tab and see if there's any relevant errors? Thanks 🙇‍♂️

jackysee commented 5 months ago

If I refresh the page at https://phanpy.social/#/mentions , it will have a bunch of CORS error on the images.

image

jackysee commented 5 months ago

I can confirm that it works now. I guess something updated?