lemmy icon indicating copy to clipboard operation
lemmy copied to clipboard

Following a Kbin community from Lemmy is broken

Open pimeys opened this issue 2 years ago • 4 comments

  • [x] Did you check to see if this issue already exists?
  • [x] Is this only a single bug? Do not put multiple bugs in one issue.

Issue Summary

Subscribing to a Kbin magazine is not working on a new Lemmy instance (0.17.3).

Steps to Reproduce

  1. Try to open a Kbin community from my instance https://lemmy.nauk.io/c/[email protected]
  2. 404 not found
  3. Wait a few minutes, retry, 404 not found

Technical details

2023-06-11T11:01:46.475407Z  WARN Error encountered while processing the incoming HTTP request: lemmy_server::root_span_builder: couldnt_find_community: error decoding response body: missing field `properties` at line 1 column 182
   0: lemmy_apub::fetcher::resolve_actor_identifier
             at crates/apub/src/fetcher/mod.rs:16
   1: lemmy_apub::api::read_community::perform
           with self=GetCommunity { id: None, name: Some("[email protected]"), auth: Some(Sensitive) }
             at crates/apub/src/api/read_community.rs:30
   2: lemmy_server::root_span_builder::HTTP request
           with http.method=GET http.scheme="http" http.host=lemmy.nauk.io http.target=/api/v3/community otel.kind="server" request_id=e1b55819-fd89-4c89-a145-3ba606fb28b7 http.status_code=400 otel.status_code="OK"
             at src/root_span_builder.rs:16
LemmyError { message: Some("couldnt_find_community"), inner: error decoding response body: missing field `properties` at line 1 column 182

Caused by:
    missing field `properties` at line 1 column 182, context: "SpanTrace" }

pimeys avatar Jun 11 '23 11:06 pimeys

I think that this may be due to kbin having turned on CloudFlare protection recently?

chaorace avatar Jun 11 '23 16:06 chaorace

Looks like a bug on the kbin side, it sends back html when in should be json.

curl -H 'Accept: application/activity+json' https://kbin.social/m/linux

Nutomic avatar Jun 12 '23 09:06 Nutomic

that HTML is indeed the cloudflare challenge

Nothing4You avatar Jun 12 '23 09:06 Nothing4You

What is the correct way to communicate this with them? I think they also don't want to break federation with the Cloudflare challenge...

pimeys avatar Jun 12 '23 09:06 pimeys

I believe that this is the official stance from the kbin developer on the current CloudFlare related Federation issues:

1686593073

chaorace avatar Jun 12 '23 18:06 chaorace

I get Failed to dereference site for https://kbin.social/: error decoding response body: expected value at line 1 column 1 errors from kbin. Is this related to the Cloudflare thing?

I am able to subscribe to kbin magazines and can see comments but I CANNOT comment (they are only on my site, not on kbin).

mirisbowring avatar Jun 16 '23 15:06 mirisbowring