Deleted post is not handled properly
After deleting a popular post my log has become spammed with errors for it trying to be retrieved. Additionally, I cannot load my notifications through the mastodon api.
Restarting has not fixed this issue.
Error fetching post:
23:32:33.295 [error] #PID<0.10547.21> running Pleroma.Web.Endpoint (cowboy_protocol) terminated
Server: letsalllovela.in:80 (http)
Request: GET /objects/a7b5c9e0-56ce-4abc-ac42-c093263cf916
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in Plug.Conn.resp/3
(plug) lib/plug/conn.ex:530: Plug.Conn.resp(%Plug.Conn{adapter: {Plug.Adapters.Cowboy.Conn, :...}, assigns: %{kind: :error, layout: false, reason: %WithClauseError{term: nil}, stack: [{Pleroma.Web.ActivityPub.ActivityPubController, :object, 2, [file: 'lib/pleroma/web/activity_pub/activity_pub_controller.ex', line: 25]}, {Pleroma.Web.ActivityPub.ActivityPubController, :action, 2, [file: 'lib/pleroma/web/activity_pub/activity_pub_controller.ex', line: 1]}, {Pleroma.Web.ActivityPub.ActivityPubController, :phoenix_controller_pipeline, 2, [file: 'lib/pleroma/web/activity_pub/activity_pub_controller.ex', line: 1]}, {Pleroma.Web.Endpoint, :instrument, 4, [file: 'lib/pleroma/web/endpoint.ex', line: 1]}, {Pleroma.Web.OStatus.OStatusController, :action, 2, [file: 'lib/pleroma/web/ostatus/ostatus_controller.ex', line: 1]}, {Pleroma.Web.OStatus.OStatusController, :phoenix_controller_pipeline, 2, [file: 'lib/pleroma/web/ostatus/ostatus_controller.ex', line: 1]}, {Pleroma.Web.Endpoint, :instrument, 4, [file: 'lib/pleroma/web/endpoint.ex', line: 1]}, {Phoenix.Router, :__call__, 1, [file: 'lib/phoenix/router.ex', line: 278]}]}, before_send: [#Function<1.25166163/1 in Plug.Logger.call/2>], body_params: %{}, cookies: %Plug.Conn.Unfetched{aspect: :cookies}, halted: false, host: "letsalllovela.in", method: "GET", owner: #PID<0.10547.21>, params: %{"uuid" => "a7b5c9e0-56ce-4abc-ac42-c093263cf916"}, path_info: ["objects", "a7b5c9e0-56ce-4abc-ac42-c093263cf916"], path_params: %{"uuid" => "a7b5c9e0-56ce-4abc-ac42-c093263cf916"}, peer: {{127, 0, 0, 1}, 38702}, port: 80, private: %{Pleroma.Web.Router => {[], %{}}, :phoenix_action => :object, :phoenix_controller => Pleroma.Web.ActivityPub.ActivityPubController, :phoenix_endpoint => Pleroma.Web.Endpoint, :phoenix_format => "activity+json", :phoenix_layout => false, :phoenix_pipelines => [:ostatus], :phoenix_router => Pleroma.Web.Router, :phoenix_template => "500.activity+json", :phoenix_view => Pleroma.Web.ErrorView, :plug_session_fetch => #Function<1.58261320/1 in Plug.Session.fetch_session/1>}, query_params: %{}, query_string: "", remote_ip: {127, 0, 0, 1}, req_cookies: %Plug.Conn.Unfetched{aspect: :cookies}, req_headers: [{"connection", "upgrade"}, {"host", "letsalllovela.in"}, {"content-length", "0"}, {"accept-encoding", "gzip"}, {"cf-ipcountry", "US"}, {"x-forwarded-for", "159.89.230.222"}, {"cf-ray", "46d7862b99119200-EWR"}, {"x-forwarded-proto", "https"}, {"cf-visitor", "{\"scheme\":\"https\"}"}, {"user-agent", "http.rb/3.2.0 (Mastodon/2.5.2; +https://botsin.space/)"}, {"date", "Sun, 21 Oct 2018 23:32:33 GMT"}, {"accept", "application/activity+json, application/ld+json, application/atom+xml, text/html"}, {"cf-connecting-ip", "159.89.230.222"}], request_path: "/objects/a7b5c9e0-56ce-4abc-ac42-c093263cf916", resp_body: nil, resp_cookies: %{}, resp_headers: [{"content-type", "application/activity+json; charset=utf-8"}, {"cache-control", "max-age=0, private, must-revalidate"}, {"x-request-id", "2lfs7bmnjg0qqo3hq001u4eh"}], scheme: :http, script_name: [], secret_key_base: "LfQo8+E3AO/PT2KlUjFNdJUspthpZtQocWyBZsc/2OfBm73+m/LAQiFRrQY0RpCU", state: :unset, status: 500}, 500, %{errors: %{detail: "Internal server error"}})
(plug) lib/plug/conn.ex:520: Plug.Conn.send_resp/3
(phoenix) lib/phoenix/endpoint/render_errors.ex:56: Phoenix.Endpoint.RenderErrors.__catch__/5
(plug) lib/plug/adapters/cowboy/handler.ex:16: Plug.Adapters.Cowboy.Handler.upgrade/4
(cowboy) /var/lib/pleroma/deps/cowboy/src/cowboy_protocol.erl:442: :cowboy_protocol.execute/4
Error loading notifications with mastodon api:
23:30:25.317 [error] #PID<0.9185.21> running Pleroma.Web.Endpoint (cowboy_protocol) terminated
Server: letsalllovela.in:80 (http)
Request: GET /api/v1/notifications?max_id=31709
** (exit) an exception was raised:
** (Phoenix.Template.UndefinedError) Could not render "status.json" for Pleroma.Web.MastodonAPI.StatusView, please define a matching clause for render/2 or define a template at "lib/pleroma/web/templates/mastodon_api/status". No templates were compiled for this module.
Assigns:
%{activity: nil, for: %Pleroma.User{__meta__: #Ecto.Schema.Metadata<:loaded, "users">, ap_id: "https://letsalllovela.in/users/crushv", avatar: %{"name" => "096613ebf85a4fb007b01cb095d6257d8d8ce2c0b583da23b178bcf164921365.png", "type" => "Image", "url" => [%{"href" => "https://letsalllovela.in/media/00f971e9-f9e3-4781-adfa-e05931a9ca66/096613ebf85a4fb007b01cb095d6257d8d8ce2c0b583da23b178bcf164921365.png", "mediaType" => "image/png", "type" => "Link"}]}, bio: "working on a <a href='https://letsalllovela.in/tag/pixelfed' rel='tag'>#pixelfed</a> client | <a href='https://letsalllovela.in/tag/nobot' rel='tag'>#nobot</a><br><br>i got a laptop now, lets get to work!<br><a href=\"https://gitlab.com/crushv/pic_pub\">https://gitlab.com/crushv/pic_pub</a><br><br>xmpp: crushv@heligo.land<br>matrix: @meowmeow:telekem.net", email: "REDACTED", follower_address: "https://letsalllovela.in/users/crushv/followers", following: ["https://mastodon.social/users/ConnyDuck/followers", "https://niu.moe/users/lis/followers", "https://letsalllovela.in/users/sinfulbutterfly/followers", "https://fosstodon.org/users/outkine/followers", "https://catgirl.science/users/scarlett/followers", "https://misskey.xyz/users/5bc67794cf0923003c7c2442/followers", "https://ilovela.in/users/tA/followers", "https://letsalllovela.in/users/che5hire/followers", "https://toot.cafe/users/nick/followers", "https://pl.smuglo.li/users/orekix/followers", "https://letsalllovela.in/users/noise/followers", "https://pixelfed.social/users/crushv/followers", "https://mastodon.sergal.org/users/ale/followers", "https://kawen.space/users/lain/followers", "https://niu.moe/users/espy/followers", "https://wandering.shop/users/janellecshane/followers", "https://letsalllovela.in/users/xeno/followers", "https://mastodon.eliotberriot.com/users/eliotberriot/followers", "https://koyu.space/users/RafiX/followers", "https://pl.smuglo.li/users/chiron/followers", "https://mastodon.matrix.org/users/matrix/followers", "https://thechad.zone/users/DetectiveHyde/followers", "https://niu.moe/users/lethalbit/followers", "https://peertube.video/accounts/gnome/followers", "https://kawen.space/users/wye/followers", "https://pleroma.soykaf.com/users/SarcasmKid/followers", "https://letsalllovela.in/users/bouio/followers", "https://botsin.space/users/hackaday/followers", "https://mstdn.io/users/park/followers", "https://niu.moe/users/abs/followers", "https://m.bonzoesc.net/users/bonzoesc/followers", "https://kawaiistu.moe/users/karolat/followers", "https://mstdn.io/users/griddle/followers", "https://pawoo.net/users/neknek663/followers", "https://niu.moe/users/effyn/followers", "https://t.cascadians.net/users/alfred/followers", "https://nulled.red/users/amic/followers", "https://mastodon.social/users/Purism/followers", "https://niu.moe/users/jeffcliff/followers", "https://mastodon.social/users/torproject/followers", "https://mastodon.social/users/bagder/followers", ...], id: 1, info: %{"background" => %{"name" => "ccdd930dcf444bc9a647b53266bcb9bb3fff02126758c7e8839bfcae63a6fb76.jpeg", "type" => "Image", "url" => [%{"href" => "https://letsalllovela.in/media/5ffe04f7-6079-4ad8-a689-3a29f77e9f04/ccdd930dcf444bc9a647b53266bcb9bb3fff02126758c7e8839bfcae63a6fb76.jpeg", "mediaType" => "image/jpeg", "type" => "Link"}]}, "banner" => %{"name" => "560afa6d87e28c8c35371ecfe51c1a50c953a2a6a5e93e8d8047d96b412b7447.jpeg", "type" => "Image", "url" => [%{"href" => "https://letsalllovela.in/media/ee89bd5e-28dd-4fc1-b582-59f8a0c0824d/560afa6d87e28c8c35371ecfe51c1a50c953a2a6a5e93e8d8047d96b412b7447.jpeg", "mediaType" => "image/jpeg", "type" => "Link"}]}, "blocks" => ["https://mastodon.social/users/noorul", "https://idw.zone/users/hello", "https://niu.moe/users/frozentriangle"], "default_scope" => "public", "follower_count" => 273, "is_moderator" => true, "keys" => "-----BEGIN RSA PRIVATE KEY-----\REDACTED RSA PRIVATE KEY\n-----END RSA PRIVATE KEY-----", "locked" => false, "no_rich_text" => false, "note_count" => 5114, "settings" => %{"columns" => [%{"id" => "COMPOSE", "params" => %{}, "uuid" => "1ff7107e-92e6-44a6-becf-169eebe23859"}, %{"id" => "HOME", "params" => %{}, "uuid" => "9a1c4952-a408-4f3c-869d-2aa1c1b7304c"}, %{"id" => "NOTIFICATIONS", "params" => %{}, "uuid" => "706d41e1-2c06-42a7-8287-ff4b1e217229"}], "community" => %{"other" => %{"onlyMedia" => false}, "regex" => %{"body" => ""}}, "direct" => %{"regex" => %{"body" => ""}}, "frequentlyUsedEmojis" => %{"blobblush" => 1, "blobhyperthink" => 4, "ThinkPlant" => 1, "blobthinkingglare" => 1, "f_03b" => 1, "evenlessexplainable" => 7, "Bhinking" => 3, "blobtired" => 1, "f_32b" => 1, "boom" => 1, "thinky" => 4, "blobangery" => 2, "a_trusted_friend" => 2, "blobpeek" => 2, "deletethis" => 6, "MonkaChrist" => 4, "bomb" => 1, "blobpats" => 3, "bigbrain" => 4, "grinning" => 1, "blue_heart" => 2, "unexplainable" => 21, "hiss" => 8, "f_00b" => 3, ...}, "home" => %{"regex" => %{"body" => ""}, "shows" => %{"reblog" => true, "reply" => true}}, "notifications" => %{"alerts" => %{"favourite" => true, "follow" => true, "mention" => true, "reblog" => true}, "shows" => %{"favourite" => true, "follow" => true, "mention" => true, "reblog" => true}, "sounds" => %{"favourite" => true, "follow" => true, "mention" => true, "reblog" => true}}, "onboarded" => true, "public" => %{"regex" => %{"body" => ""}}, "skinTone" => 1, "trends" => %{"show" => true}}, "source_data" => %{"tag" => []}}, inserted_at: ~N[2018-08-17 23:08:00.254505], last_refreshed_at: nil, local: true, name: "nik", nickname: "crushv", notifications: #Ecto.Association.NotLoaded<association :notifications is not loaded>, password: nil, password_confirmation: nil, password_hash: "$pbkdf2-sha512$160000$UQSBLHyOOSIWg/jGMXbSkg$XZan0hQe97p9g1zj8djOX0MTWdwfuYQz.k1gN31OjZO3B4RNeE07gbY4NM.zdRzrYZMslgy2XJHT4cSN/Rpokw", search_distance: nil, updated_at: ~N[2018-10-21 23:19:42.013347]}, template_not_found: Pleroma.Web.MastodonAPI.StatusView}
Assigned keys: [:activity, :for, :template_not_found]
(phoenix) (truncated)