LemmyNet / lemmy

🐀 A link aggregator and forum for the fediverse
https://join-lemmy.org
GNU Affero General Public License v3.0
13.3k stars 882 forks source link

[Bug]: GetCommunity sometimes not working with remote communities #3144

Closed FriederHannenheim closed 1 year ago

FriederHannenheim commented 1 year ago

Summary

This is a bug I encountered while searching for new communities on browse.feddit.de. When I clicked on the link and they opened up in Jerbora the app got into a weird state and it didn't show the community. My home instance is lemmy.one but it happens on other instances too. GetCommunity returns { "error": "couldnt_find_community" } A community I've seen this happen with is dresden@feddit.de but there are others.

Steps to Reproduce

  1. Perform a GET request on https://lemmy.one/api/v3/community?name=dresden@feddit.de
  2. Try the same with https://feddit.de/api/v3/community?name=dresden@feddit.de and it works
  3. This is also not working: https://infosec.pub/api/v3/community?name=dresden@feddit.de

Version

lemmy.one is on 0.17.3 and infosec.pub is on 0.17.4

FriederHannenheim commented 1 year ago

Ok it is a local community. My bad

FriederHannenheim commented 1 year ago

Local only means that it is home to a server, not that it is accessible on only that server. This issue is still valid

Nutomic commented 1 year ago

Are you logged in when making these requests? Because a community only gets fetched from a remote server if the request is made by an authenticated user.

dessalines commented 1 year ago

Stale