Cannot fetch follower counts from Pleroma users
In develop branch, possibly related to !2349 (merged)
Pleroma account:
Pleroma.Web.ActivityPub.ActivityPub.fetch_and_prepare_user_from_ap_id("https://lain.com/users/lain")
12:36:11.529 [error] Follower/Following counter update for https://lain.com/users/lain failed. {:error, {:ok, %Tesla.Env{client: %Tesla.Client{adapter: {Tesla.Adapter.Gun, :call, [[]]}, fun: nil, post: [], pre: [{Tesla.Middleware.FollowRedirects, :call, [[]]}]}, module: Tesla, body: "{"error":"Invalid credentials."}", headers: [{"server", "nginx/1.14.0 (Ubuntu)"}, {"date", "Sat, 02 May 2020 12:36:11 GMT"}, {"content-type", "application/json; charset=utf-8"}, {"content-length", "32"}, {"vary", "Accept-Encoding"}, {"access-control-allow-credentials", "true"}, {"access-control-allow-origin", "*"}, {"access-control-expose-headers", "Link,X-RateLimit-Reset,X-RateLimit-Limit,X-RateLimit-Remaining,X-Request-Id,Idempotency-Key"}, {"cache-control", "max-age=0, private, must-revalidate"}, {"content-security-policy", "default-src 'none'; base-uri 'self'; frame-ancestors 'none'; img-src 'self' data: https:; media-src 'self' https:; style-src 'self' 'unsafe-inline'; font-src 'self'; manifest-src 'self'; connect-src 'self' https://lain.com wss://lain.com; script-src 'self'; upgrade-insecure-requests;"}, {"referrer-policy", "same-origin"}, {"x-content-type-options", "nosniff"}, {"x-download-options", "noopen"}, {"x-frame-options", "DENY"}, {"x-permitted-cross-domain-policies", "none"}, {"x-request-id", "Fgs2RtgMCv5GBjAAD_WB"}, {"x-xss-protection", "1; mode=block"}], method: :get, opts: [adapter: [tls_opts: [log_level: :warning], certificates_verification: true, connect_timeout: 5000, domain_lookup_timeout: 5000, tls_handshake_timeout: 5000, retry: 1, retry_timeout: 1000, await_up_timeout: 5000, pool: :federation, timeout: 150000, conn: #PID<0.22536.5>, close_conn: false]], query: [], status: 403, url: "https://lain.com/users/lain/following"}}}
Mastodon account
Pleroma.Web.ActivityPub.ActivityPub.fetch_and_prepare_user_from_ap_id("https://mastodon.social/@feldpos")
{:ok, %{ actor_type: "Person", ...