Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"This instance is private" error when using "Create Post" button on community page #761

Closed
sam365724 opened this issue Aug 24, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@sam365724
Copy link
Contributor

sam365724 commented Aug 24, 2022

Issue Summary

Create post not working (timeout + error) when using this button from a subscribed community:
image

image

Steps to Reproduce

  1. Go to a subscribed community
  2. Click on right button create post
  3. Observe error "This instance is private" and page going white, not loading.

PS: Refreshing the page with the same URL works, the form shows up.

Technical details

0.16.6

lemmy_1     | 2022-08-24T04:23:26.578959Z ERROR Websocket Request{trace_id=00000000000000000000000000000000}: lemmy_websocket::handlers: Error during message handling instance_is_private: instance_is_private
lemmy_1     |    0: lemmy_api_common::utils::check_private_instance
lemmy_1     |              at crates/api_common/src/utils.rs:270
lemmy_1     |    1: lemmy_api_crud::community::read::perform
lemmy_1     |            with self=GetCommunity { id: Some(CommunityId(2)), name: None, auth: None }
lemmy_1     |              at crates/api_crud/src/community/read.rs:23
lemmy_1     |    2: lemmy_websocket::handlers::Websocket Request
lemmy_1     |            with trace_id=00000000000000000000000000000000
lemmy_1     |              at crates/websocket/src/handlers.rs:68

Potential root cause

auth is missing from the websocket request:
image

@sam365724 sam365724 added the bug Something isn't working label Aug 24, 2022
@sam365724
Copy link
Contributor Author

@dessalines Maybe this is a lemmy server issue?

@sam365724
Copy link
Contributor Author

sam365724 commented Aug 26, 2022

Potential problem here?


Do we need to pass " auth: auth().unwrap()," here too?

@dessalines This is an important issue for me as all users run into this problem and most don't know how to workaround. So they are unable to post any new things .(
As I think i found the root cause and potential fix, maybe you can look into it?

sam365724 added a commit to sam365724/lemmy-ui that referenced this issue Aug 28, 2022
@Nutomic Nutomic closed this as completed Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants