Handle actor fetch issues better
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
87aeac6aea
commit
eaadf261ac
@ -119,6 +119,10 @@ defmodule Mobilizon.Federation.ActivityPub.Fetcher do
|
|||||||
Logger.info("Response HTTP 410")
|
Logger.info("Response HTTP 410")
|
||||||
{:error, :actor_deleted}
|
{:error, :actor_deleted}
|
||||||
|
|
||||||
|
{:ok, %Tesla.Env{}} ->
|
||||||
|
Logger.info("Non 200 HTTP Code")
|
||||||
|
{:error, :http_error}
|
||||||
|
|
||||||
{:error, e} ->
|
{:error, e} ->
|
||||||
Logger.warn("Could not decode actor at fetch #{url}, #{inspect(e)}")
|
Logger.warn("Could not decode actor at fetch #{url}, #{inspect(e)}")
|
||||||
{:error, e}
|
{:error, e}
|
||||||
|
Loading…
Reference in New Issue
Block a user