Closed Tealk closed 2 months ago
When I try to create a community I get the error InvalidName in the log, in the Lemmy-UI there is nothing, in the browser console only Error 400.
In Photon I get an error message: {“message”:“{\”error\“:\”invalid_name\“}”}
{“message”:“{\”error\“:\”invalid_name\“}”}
It seems to be the case that you can only use very short community names, perhaps this should be increased?
lemmy-web1 log:
lemmy-web1_1 | 2024-08-20T06:47:09.873650Z WARN lemmy_server::root_span_builder: InvalidName: InvalidName lemmy-web1_1 | 0: lemmy_api_crud::community::create::create_community lemmy-web1_1 | with data=Json(CreateCommunity { name: "tagebuch_aborea_elion_lavellan", title: "Tagebuch Elion Lavellan", description: None, icon: None, banner: None, nsfw: None, posting_restricted_to_mods: Some(true), discussion_languages: Some([LanguageId(32)]), visibility: None }) local_user_view=LocalUserView { local_user: LocalUser { id: LocalUserId(1), person_id: PersonId(2), password_encrypted: Sensitive, email: Some(Sensitive), show_nsfw: false, theme: "browser", default_sort_type: New, default_listing_type: Subscribed, interface_language: "en", show_avatars: true, send_notifications_to_email: false, show_scores: true, show_bot_accounts: true, show_read_posts: true, email_verified: false, accepted_application: true, totp_2fa_secret: Some(Sensitive), open_links_in_new_tab: false, blur_nsfw: true, auto_expand: false, infinite_scroll_enabled: false, admin: true, post_listing_mode: List, totp_2fa_enabled: true, enable_keyboard_navigation: false, enable_animated_images: true, collapse_bot_comments: false }, local_user_vote_display_mode: LocalUserVoteDisplayMode { local_user_id: LocalUserId(1), score: false, upvotes: true, downvotes: true, upvote_percentage: false }, person: Person { id: PersonId(2), name: "Tealk", display_name: Some("Tealk"), avatar: Some(DbUrl(Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("rollenspiel.forum")), port: None, path: "/pictrs/image/05a4bee8-7cfc-4e3e-8958-8970c8c61e20.png", query: None, fragment: None })), banned: false, published: 2023-08-08T19:35:37.251158Z, updated: None, actor_id: DbUrl(Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("rollenspiel.forum")), port: None, path: "/u/Tealk", query: None, fragment: None }), bio: Some("openpgp4fpr:d6a42fb0a007bd7af8fd67145fe349abc863e7f9"), local: true, private_key: Some(Sensitive), public_key: "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnZs3q4dxp7zWLZ4R9grd\n8j+GhgvBkB9lNhrss3C3rwRDdzqHnqKNSKCC+A+RJDcA5xW28hpASzXL2AJWimeD\nq1vC0JicHyMT68TxbtPfTmydWHgcaMQ99cak7/1O1Fynn69nlftDloPaHne/yGXJ\nXMWE/EXmQYa8XC0vZAcDSE+7QfyfY/o+co3bjhQ6ODoAbKSAgSvZY6JAPDg24yYY\nPeXvfi323VDA/s5QgBHUVDhdPC+9OAaMhfhE+obYqPptW93KqzcfLVwfjz3fwthb\nS8WdQYObrVWqivWkYzOKIUwKjEH1lBfbOkX0zChDLKLxdU+hbVgpZbeeqUQZPqkC\nHwIDAQAB\n-----END PUBLIC KEY-----\n", last_refreshed_at: 2023-08-08T19:35:37.251158Z, banner: None, deleted: false, inbox_url: DbUrl(Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("rollenspiel.forum")), port: None, path: "/u/Tealk/inbox", query: None, fragment: None }), shared_inbox_url: Some(DbUrl(Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("rollenspiel.forum")), port: None, path: "/inbox", query: None, fragment: None })), matrix_user_id: Some("@tealk:rollenspiel.chat"), bot_account: false, ban_expires: None, instance_id: InstanceId(1) }, counts: PersonAggregates { person_id: PersonId(2), post_count: 79, post_score: 373, comment_count: 312, comment_score: 1011 } } lemmy-web1_1 | at crates/api_crud/src/community/create.rs:44 lemmy-web1_1 | 1: lemmy_server::root_span_builder::HTTP request lemmy-web1_1 | with http.method=POST http.scheme="http" http.host=rollenspiel.forum http.target=/api/v3/community otel.kind="server" request_id=bcbd9fad-514e-4b5d-86aa-c73d65edadc4 lemmy-web1_1 | at src/root_span_builder.rs:16
Browser console
XHRPOST https://rollenspiel.forum/api/v3/community [HTTP/2 400 27ms]
BE: 0.19.5
https://rollenspiel.forum
There is already a setting under /admin called "Max actor name length" which covers this.
Requirements
Summary
When I try to create a community I get the error InvalidName in the log, in the Lemmy-UI there is nothing, in the browser console only Error 400.
In Photon I get an error message:
{“message”:“{\”error\“:\”invalid_name\“}”}
It seems to be the case that you can only use very short community names, perhaps this should be increased?
Steps to Reproduce
Technical Details
lemmy-web1 log:
Browser console
Version
BE: 0.19.5
Lemmy Instance URL
https://rollenspiel.forum