[bug] Fetch rich media failed, blocked timeline for certain URLs #533
Labels
No labels
approved, awaiting change
bug
configuration
documentation
duplicate
enhancement
extremely low priority
feature request
Fix it yourself
help wanted
invalid
mastodon_api
needs docs
needs tests
not a bug
planned
pleroma_api
privacy
question
static_fe
triage
wontfix
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: AkkomaGang/akkoma#533
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Your setup
From source
Extra details
Debian 11
Version
2023.04
PostgreSQL version
13
What were you trying to do?
This could be related to the "home/public timeline" failed to load issues e.g. #487 #508
Several days ago, my instance's public timeline didn't load for all users. I deleted one post and timeline worked again.
The deleted post also wouldn't load in Admin-FE. Nothing special in the post, except an URL (NSFW): https://www.reinderdijkhuis.com/greyfriars/2022/11/12/nudist-conversation-enders/
In the screenshot below, I pasted the same URL in Akkoma-FE's compose field, with Preview opened. Note that the preview took forever to load, and eventually failed with a message,
JSON.parse: unexpected character at line 1 column 1 of the JSON data
What did you expect to happen?
Fetching rich media doesn't block forever when JSON parse errors out
What actually happened?
No response
Logs
Severity
I cannot use it as easily as I'd like
Have you searched for this issue?
Had the same issue on my instance, finding the "faulty" toot was hard.
This issue can be concerning since legit users can toot bad links that can crash timelines for all users without even knowing.
Here the issue was caused by a bad redirect.
the above log is from an old version, please check if it occurs on the most recent release
Here is a log from v3.10.4 :)
I mitigated the issue with this fix, but I'm absolutely not satisfied with it
80519fe492
Here is a log from 3.13.1. The issue is preventing me from fetching older posts.
URL: https://www.weaselhat.com/2015/03/16/a-refinement-type-by-any-other-name/
that is a completely different issue - What's happening there is that a remote instance is giving you a post URL that isn't actually a URL but a weird wordpress thing
the spec does not allow that and failing is the correct behaviour
@floatingghost Sorry! I shouldn't pollute this thread then. It seems to be failing very hard though? In any context where this post occurs, I'm getting nothing else too.
https://recurse.social/@lindsey/112425593807393381
It does seem that failure is the expected outcome here. However, the timeline cannot be properly displayed to users as long as the problematic URL remains in the status that needs to be displayed. Once the faulty status is deleted, the timeline functions correctly again.
I apologize for adding to this thread if you feel my message is off-topic. In my opinion, the symptoms appeared similar enough, but I might have misunderstood things completely!