Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • pleroma pleroma
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 655
    • Issues 655
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 100
    • Merge requests 100
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PleromaPleroma
  • pleromapleroma
  • Issues
  • #672
Closed
Open
Issue created Feb 23, 2019 by Sadposter@FloatingGhostDeveloper

[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
Edited Feb 24, 2019 by Sadposter
Assignee
Assign to
Time tracking