Rich media preview fails for certain links, preventing posts from rendering
https://www.haveyoureadnevada.club/ has some sort of issue that causes rich media previews to fail. As a result, I get 500 responses on posting something that contains it, and while the post succeeds, I then can't load any posts that contain that link while :rich_media
is enabled. As a side effect, notifications won't load until any responses to that post are out of the recent window.
Example error on trying to view such a post:
Feb 10 07:15:55 pleroma mix[18349]: 07:15:55.675 request_id=2m0uuookpujrfg63ls0097l1 [info] Converted error :badarg to 500 response
Feb 10 07:15:55 pleroma mix[18349]: 07:15:55.675 request_id=2m0uuookpujrfg63ls0097l1 [info] Sent 500 in 53ms
Feb 10 07:15:55 pleroma mix[18349]: 07:15:55.680 [error] #PID<0.3113.0> running Pleroma.Web.Endpoint (cowboy_protocol) terminated
Feb 10 07:15:55 pleroma mix[18349]: Server: princess.industries:80 (http)
Feb 10 07:15:55 pleroma mix[18349]: Request: GET /api/statuses/show/9fgSZwaVI1fAZyzv2e.json
Feb 10 07:15:55 pleroma mix[18349]: ** (exit) an exception was raised:
Feb 10 07:15:55 pleroma mix[18349]: ** (ArgumentError) argument error
Feb 10 07:15:55 pleroma mix[18349]: (pleroma) lib/pleroma/web/mastodon_api/views/status_view.ex:192: Pleroma.Web.MastodonAPI.StatusView.render/2
Feb 10 07:15:55 pleroma mix[18349]: (pleroma) lib/pleroma/web/twitter_api/views/activity_view.ex:279: Pleroma.Web.TwitterAPI.ActivityView.render/2
Feb 10 07:15:55 pleroma mix[18349]: (phoenix) lib/phoenix/view.ex:399: Phoenix.View.render_to_iodata/3
Feb 10 07:15:55 pleroma mix[18349]: (phoenix) lib/phoenix/controller.ex:729: Phoenix.Controller.__put_render__/5
Feb 10 07:15:55 pleroma mix[18349]: (phoenix) lib/phoenix/controller.ex:746: Phoenix.Controller.instrument_render_and_send/4
Feb 10 07:15:55 pleroma mix[18349]: (pleroma) lib/pleroma/web/twitter_api/twitter_api_controller.ex:5: Pleroma.Web.TwitterAPI.Controller.action/2
Feb 10 07:15:55 pleroma mix[18349]: (pleroma) lib/pleroma/web/twitter_api/twitter_api_controller.ex:5: Pleroma.Web.TwitterAPI.Controller.phoenix_controller_pipeline/2
Feb 10 07:15:55 pleroma mix[18349]: (pleroma) lib/pleroma/web/endpoint.ex:5: Pleroma.Web.Endpoint.instrument/4
Example error on trying to create such a post:
Feb 10 07:18:53 pleroma mix[18349]: 07:18:53.363 request_id=2m0uv33n0o2dmc75gg009ab1 [info] POST /api/v1/statuses
Feb 10 07:18:53 pleroma mix[18349]: 07:18:53.422 [error] GenServer Pleroma.Web.Streamer terminating
Feb 10 07:18:53 pleroma mix[18349]: ** (ArgumentError) argument error
Feb 10 07:18:53 pleroma mix[18349]: (pleroma) lib/pleroma/web/mastodon_api/views/status_view.ex:192: Pleroma.Web.MastodonAPI.StatusView.render/2
Feb 10 07:18:53 pleroma mix[18349]: (pleroma) lib/pleroma/web/mastodon_api/views/status_view.ex:144: Pleroma.Web.MastodonAPI.StatusView.render/2
Feb 10 07:18:53 pleroma mix[18349]: (pleroma) lib/pleroma/web/streamer.ex:167: Pleroma.Web.Streamer.represent_update/2
Feb 10 07:18:53 pleroma mix[18349]: (pleroma) lib/pleroma/web/streamer.ex:225: anonymous fn/2 in Pleroma.Web.Streamer.push_to_socket/3
Feb 10 07:18:53 pleroma mix[18349]: (elixir) lib/enum.ex:765: Enum."-each/2-lists^foreach/1-0-"/2
Feb 10 07:18:53 pleroma mix[18349]: (elixir) lib/enum.ex:765: Enum.each/2
Feb 10 07:18:53 pleroma mix[18349]: (elixir) lib/enum.ex:765: Enum."-each/2-lists^foreach/1-0-"/2
Feb 10 07:18:53 pleroma mix[18349]: (elixir) lib/enum.ex:765: Enum.each/2
Feb 10 07:18:53 pleroma mix[18349]: Last message: {:"$gen_cast", %{action: :stream, item: %Pleroma.Activity{__meta__: #Ecto.Schema.Metadata<:loaded, "activities">, actor: "https://princess.industries/users/VyrCossont", data: %{"actor" => "https://princess.industries/users/VyrCossont", "cc" => [], "context" => "https://princess.industries/contexts/217802ec-93f3-4b07-9a6b-2debf15cf4aa", "context_id" => 1245927, "directMessage" => true, "id" => "https://princess.industries/activities/7e530cb3-d297-44d8-a14f-1112e5c8f5d7", "object" => %{"actor" => "https://princess.industries/users/VyrCossont", "attachment" => [], "cc" => [], "content" => "<span class='h-card'><a data-user='1' class='u-url mention' href='https://princess.industries/users/VyrCossont'>@<span>VyrCossont</span></a></span> <a href=\"https://www.haveyoureadnevada.club/\">https://www.haveyoureadnevada.club/</a>", "context" => "https://princess.industries/contexts/217802ec-93f3-4b07-9a6b-2debf15cf4aa", "context_id" => 1245927, "emoji" => %{}, "id" => "https://princess.industries/objects/5a0d05c9-8119-4c31-a452-a2bb77144e11", "published" => "2019-02-10T07:18:53.385480Z", "summary" => "", "tag" => [], "to" => ["https://princess.industries/users/VyrCossont"], "type" => "Note"}, "published" => "2019-02-10T07:18:53.366821Z", "to" => ["https://princess.industries/users/VyrCossont"], "type" => "Create"}, id: "9fgVRjGGR11uXFIgAi", inserted_at: ~N[2019-02-10 07:18:53.403974], local: true, notifications: #Ecto.Association.NotLoaded<association :notifications is not loaded>, recipients: ["https://princess.industries/users/VyrCossont"], updated_at: ~N[2019-02-10 07:18:53.403983]}, topic: "user"}}
Feb 10 07:18:53 pleroma mix[18349]: 07:18:53.454 [info] Sending https://princess.industries/activities/7e530cb3-d297-44d8-a14f-1112e5c8f5d7 out via AP
Feb 10 07:18:53 pleroma mix[18349]: 07:18:53.455 request_id=2m0uv33n0o2dmc75gg009ab1 [info] Converted error :badarg to 500 response
Feb 10 07:18:53 pleroma mix[18349]: 07:18:53.455 request_id=2m0uv33n0o2dmc75gg009ab1 [info] Sent 500 in 91ms
Feb 10 07:18:53 pleroma mix[18349]: 07:18:53.459 [error] #PID<0.3731.0> running Pleroma.Web.Endpoint (cowboy_protocol) terminated
Feb 10 07:18:53 pleroma mix[18349]: Server: princess.industries:80 (http)
Feb 10 07:18:53 pleroma mix[18349]: Request: POST /api/v1/statuses
Feb 10 07:18:53 pleroma mix[18349]: ** (exit) an exception was raised:
Feb 10 07:18:53 pleroma mix[18349]: ** (ArgumentError) argument error
Feb 10 07:18:53 pleroma mix[18349]: (pleroma) lib/pleroma/web/mastodon_api/views/status_view.ex:192: Pleroma.Web.MastodonAPI.StatusView.render/2
Feb 10 07:18:53 pleroma mix[18349]: (pleroma) lib/pleroma/web/mastodon_api/views/status_view.ex:144: Pleroma.Web.MastodonAPI.StatusView.render/2
Feb 10 07:18:53 pleroma mix[18349]: (phoenix) lib/phoenix/view.ex:399: Phoenix.View.render_to_iodata/3
Feb 10 07:18:53 pleroma mix[18349]: (phoenix) lib/phoenix/controller.ex:729: Phoenix.Controller.__put_render__/5
Feb 10 07:18:53 pleroma mix[18349]: (phoenix) lib/phoenix/controller.ex:746: Phoenix.Controller.instrument_render_and_send/4
Feb 10 07:18:53 pleroma mix[18349]: (pleroma) lib/pleroma/web/mastodon_api/mastodon_api_controller.ex:1404: Pleroma.Web.MastodonAPI.MastodonAPIController.try_render/3
Feb 10 07:18:53 pleroma mix[18349]: (pleroma) lib/pleroma/web/mastodon_api/mastodon_api_controller.ex:5: Pleroma.Web.MastodonAPI.MastodonAPIController.action/2
Feb 10 07:18:53 pleroma mix[18349]: (pleroma) lib/pleroma/web/mastodon_api/mastodon_api_controller.ex:5: Pleroma.Web.MastodonAPI.MastodonAPIController.phoenix_controller_pipeline/2