[RichMedia.Parser] Invalid URL - does not honour timeout parameter
On view of/api/v1/accounts/1/statuses
, pleroma will hang until nginx hangs up on it
I tried offloading the database to another host to rule out machine-related issues - and the issue persisted
Output log: pleroma.log
It would appear that the rendering function for this particular set of statuses is an issue - setting max_id
to something in the past returns as normal
For debugging purposes I have modified the mastodon controller endpoint to read:
def user_statuses(%{assigns: %{user: reading_user}} = conn, params) do
IO.puts "STARTING STATUS GETTING"
with %User{} = user <- Repo.get(User, params["id"]) do
IO.puts "FOUND USER"
activities = ActivityPub.fetch_user_activities(user, reading_user, params)
IO.puts "FOUND ACTIVITIES"
IO.inspect activities
conn =
conn
|> add_link_headers(:user_statuses, activities, params["id"])
IO.puts "LINK ADDED"
conn = conn |> put_view(StatusView)
IO.puts "VIEW PUT"
conn |> render("index.json", %{
activities: activities,
for: reading_user,
as: :activity
})
end
end