@merefield @joffreyjaffeux here is the logs, when i type in message box and send.
Delivering messages [] to client 4c6e690d53844d29be1f7e2f38dd12d8 for user 1 (chunked)
UserAuthToken Load (1.5ms) SELECT "user_auth_tokens".* FROM "user_auth_tokens" WHERE ((auth_token = 'szvLZH+BlxR8QAZaqku+p5jPKsk=' OR
prev_auth_token = 'szvLZH+BlxR8QAZaqku+p5jPKsk=') AND rotated_at > '2024-12-28 12:10:59.994672') ORDER BY "user_auth_tokens"."id" ASC LIMIT 1
User Load (2.3ms) SELECT "users"."id", "users"."username", "users"."created_at", "users"."updated_at", "users"."name", "users"."last_posted_at", "users"."active", "users"."username_lower", "users"."last_seen_at", "users"."admin", "users"."last_emailed_at", "users"."trust_level", "users"."approved", "users"."approved_by_id", "users"."approved_at", "users"."previous_visit_at", "users"."suspended_at", "users"."suspended_till", "users"."date_of_birth", "users"."views", "users"."flag_level", "users"."ip_address", "users"."moderator", "users"."title", "users"."uploaded_avatar_id", "users"."locale", "users"."primary_group_id", "users"."registration_ip_address", "users"."staged", "users"."first_seen_at", "users"."silenced_till", "users"."group_locked_trust_level", "users"."manual_locked_trust_level", "users"."secure_identifier", "users"."flair_group_id", "users"."last_seen_reviewable_id", "users"."required_fields_version", "users"."seen_notification_id" FROM "users" WHERE "users"."id" = 1 LIMIT 1
(4.7ms) SELECT "groups"."id" FROM "groups"
Delivering messages [] to client 4c6e690d53844d29be1f7e2f38dd12d8 for user 1 (chunked)
Started POST "/presence/update" for 127.0.0.1 at 2025-02-26 17:41:02 +0530
Processing by PresenceController#update as */*
Parameters: {"client_id"=>"4c6e690d53844d29be1f7e2f38dd12d8", "present_channels"=>["/chat/online", "/chat-reply/1"]}
UserAuthToken Load (2.5ms) SELECT "user_auth_tokens".* FROM "user_auth_tokens" WHERE ((auth_token = 'szvLZH+BlxR8QAZaqku+p5jPKsk=' OR
prev_auth_token = 'szvLZH+BlxR8QAZaqku+p5jPKsk=') AND rotated_at > '2024-12-28 12:11:02.184406') ORDER BY "user_auth_tokens"."id" ASC LIMIT 1
User Load (2.9ms) SELECT "users"."id", "users"."username", "users"."created_at", "users"."updated_at", "users"."name", "users"."last_posted_at", "users"."active", "users"."username_lower", "users"."last_seen_at", "users"."admin", "users"."last_emailed_at", "users"."trust_level", "users"."approved", "users"."approved_by_id", "users"."approved_at", "users"."previous_visit_at", "users"."suspended_at", "users"."suspended_till", "users"."date_of_birth", "users"."views", "users"."flag_level", "users"."ip_address", "users"."moderator", "users"."title", "users"."uploaded_avatar_id", "users"."locale", "users"."primary_group_id", "users"."registration_ip_address", "users"."staged", "users"."first_seen_at", "users"."silenced_till", "users"."group_locked_trust_level", "users"."manual_locked_trust_level", "users"."secure_identifier", "users"."flair_group_id", "users"."last_seen_reviewable_id", "users"."required_fields_version", "users"."seen_notification_id" FROM "users" WHERE "users"."id" = 1 LIMIT 1
UserOption Load (6.1ms) SELECT "user_options"."user_id", "user_options"."mailing_list_mode", "user_options"."email_digests", "user_options"."external_links_in_new_tab", "user_options"."enable_quoting", "user_options"."dynamic_favicon", "user_options"."automatically_unpin_topics", "user_options"."digest_after_minutes", "user_options"."auto_track_topics_after_msecs", "user_options"."new_topic_duration_minutes", "user_options"."last_redirected_to_top_at", "user_options"."email_previous_replies", "user_options"."email_in_reply_to", "user_options"."like_notification_frequency", "user_options"."mailing_list_mode_frequency", "user_options"."include_tl0_in_digests", "user_options"."notification_level_when_replying", "user_options"."theme_key_seq", "user_options"."allow_private_messages", "user_options"."homepage_id", "user_options"."theme_ids", "user_options"."hide_profile_and_presence", "user_options"."text_size_key", "user_options"."text_size_seq", "user_options"."email_level", "user_options"."email_messages_level", "user_options"."title_count_mode_key", "user_options"."enable_defer", "user_options"."timezone", "user_options"."enable_allowed_pm_users", "user_options"."dark_scheme_id", "user_options"."skip_new_user_tips", "user_options"."color_scheme_id", "user_options"."default_calendar", "user_options"."chat_enabled", "user_options"."only_chat_push_notifications", "user_options"."oldest_search_log_date", "user_options"."chat_sound", "user_options"."dismissed_channel_retention_reminder", "user_options"."dismissed_dm_retention_reminder", "user_options"."bookmark_auto_delete_preference", "user_options"."ignore_channel_wide_mention", "user_options"."chat_email_frequency", "user_options"."enable_experimental_sidebar", "user_options"."seen_popups", "user_options"."chat_header_indicator_preference", "user_options"."sidebar_link_to_filtered_list", "user_options"."sidebar_show_count_of_new_items", "user_options"."watched_precedence_over_muted", "user_options"."chat_separate_sidebar_mode", "user_options"."topics_unread_when_closed", "user_options"."show_thread_title_prompts", "user_options"."enable_smart_lists", "user_options"."hide_profile", "user_options"."hide_presence", "user_options"."chat_send_shortcut" FROM "user_options" WHERE "user_options"."user_id" = 1 LIMIT 1
(1.5ms) SELECT "group_users"."group_id" FROM "group_users" WHERE "group_users"."user_id" = 1
Chat::Channel Load (1.3ms) SELECT "chat_channels"."id", "chat_channels"."chatable_id", "chat_channels"."deleted_at", "chat_channels"."deleted_by_id", "chat_channels"."featured_in_category_id", "chat_channels"."delete_after_seconds", "chat_channels"."chatable_type", "chat_channels"."created_at", "chat_channels"."updated_at", "chat_channels"."name", "chat_channels"."description", "chat_channels"."status", "chat_channels"."user_count", "chat_channels"."auto_join_users", "chat_channels"."user_count_stale", "chat_channels"."type", "chat_channels"."slug", "chat_channels"."allow_channel_wide_mentions", "chat_channels"."messages_count", "chat_channels"."threading_enabled", "chat_channels"."last_message_id", "chat_channels"."icon_upload_id" FROM "chat_channels" WHERE "chat_channels"."deleted_at" IS NULL AND "chat_channels"."id" = 1 LIMIT 1
Chat::DirectMessage Load (1.5ms) SELECT "direct_message_channels".* FROM "direct_message_channels" WHERE "direct_message_channels"."id" = 1 LIMIT 1
(1.9ms) SELECT "users"."id" FROM "users" INNER JOIN "direct_message_users" ON "users"."id" = "direct_message_users"."user_id" WHERE "direct_message_users"."direct_message_channel_id" = 1
User Load (1.5ms) SELECT "users"."id", "users"."username", "users"."created_at", "users"."updated_at", "users"."name", "users"."last_posted_at", "users"."active", "users"."username_lower", "users"."last_seen_at", "users"."admin", "users"."last_emailed_at", "users"."trust_level", "users"."approved", "users"."approved_by_id", "users"."approved_at", "users"."previous_visit_at", "users"."suspended_at", "users"."suspended_till", "users"."date_of_birth", "users"."views", "users"."flag_level", "users"."ip_address", "users"."moderator", "users"."title", "users"."uploaded_avatar_id", "users"."locale", "users"."primary_group_id", "users"."registration_ip_address", "users"."staged", "users"."first_seen_at", "users"."silenced_till", "users"."group_locked_trust_level", "users"."manual_locked_trust_level", "users"."secure_identifier", "users"."flair_group_id", "users"."last_seen_reviewable_id", "users"."required_fields_version", "users"."seen_notification_id" FROM "users" WHERE "users"."id" = 1
UserOption Load (2.3ms) SELECT "user_options"."user_id", "user_options"."mailing_list_mode", "user_options"."email_digests", "user_options"."external_links_in_new_tab", "user_options"."enable_quoting", "user_options"."dynamic_favicon", "user_options"."automatically_unpin_topics", "user_options"."digest_after_minutes", "user_options"."auto_track_topics_after_msecs", "user_options"."new_topic_duration_minutes", "user_options"."last_redirected_to_top_at", "user_options"."email_previous_replies", "user_options"."email_in_reply_to", "user_options"."like_notification_frequency", "user_options"."mailing_list_mode_frequency", "user_options"."include_tl0_in_digests", "user_options"."notification_level_when_replying", "user_options"."theme_key_seq", "user_options"."allow_private_messages", "user_options"."homepage_id", "user_options"."theme_ids", "user_options"."hide_profile_and_presence", "user_options"."text_size_key", "user_options"."text_size_seq", "user_options"."email_level", "user_options"."email_messages_level", "user_options"."title_count_mode_key", "user_options"."enable_defer", "user_options"."timezone", "user_options"."enable_allowed_pm_users", "user_options"."dark_scheme_id", "user_options"."skip_new_user_tips", "user_options"."color_scheme_id", "user_options"."default_calendar", "user_options"."chat_enabled", "user_options"."only_chat_push_notifications", "user_options"."oldest_search_log_date", "user_options"."chat_sound", "user_options"."dismissed_channel_retention_reminder", "user_options"."dismissed_dm_retention_reminder", "user_options"."bookmark_auto_delete_preference", "user_options"."ignore_channel_wide_mention", "user_options"."chat_email_frequency", "user_options"."enable_experimental_sidebar", "user_options"."seen_popups", "user_options"."chat_header_indicator_preference", "user_options"."sidebar_link_to_filtered_list", "user_options"."sidebar_show_count_of_new_items", "user_options"."watched_precedence_over_muted", "user_options"."chat_separate_sidebar_mode", "user_options"."topics_unread_when_closed", "user_options"."show_thread_title_prompts", "user_options"."enable_smart_lists", "user_options"."hide_profile", "user_options"."hide_presence", "user_options"."chat_send_shortcut" FROM "user_options" WHERE "user_options"."user_id" = 1
Completed 200 OK in 81ms (Views: 0.4ms | ActiveRecord: 21.2ms (9 queries, 0 cached) | GC: 2.0ms)
Delivering messages [{"global_id":5317,"message_id":17,"channel":"/presence/chat-reply/1","data":{"entering_users":[{"id":1,"username":"user1","name":null,"avatar_template":"/letter_avatar_proxy/v4/letter/u/5daacb/{size}.png"}]}}] to client 4c6e690d53844d29be1f7e2f38dd12d8 for user 1 (chunked)
Started POST "/chat/1" for 127.0.0.1 at 2025-02-26 17:41:02 +0530
Processing by Chat::Api::ChannelMessagesController#create as */*
Parameters: {"message"=>"test", "staged_id"=>"4c874e5d-0934-4baa-8104-6ff2792d83eb", "chat_channel_id"=>"1"}
UserAuthToken Load (2.1ms) SELECT "user_auth_tokens".* FROM "user_auth_tokens" WHERE ((auth_token = 'szvLZH+BlxR8QAZaqku+p5jPKsk=' OR
prev_auth_token = 'szvLZH+BlxR8QAZaqku+p5jPKsk=') AND rotated_at > '2024-12-28 12:11:02.500622') ORDER BY "user_auth_tokens"."id" ASC LIMIT 1
User Load (2.7ms) SELECT "users"."id", "users"."username", "users"."created_at", "users"."updated_at", "users"."name", "users"."last_posted_at", "users"."active", "users"."username_lower", "users"."last_seen_at", "users"."admin", "users"."last_emailed_at", "users"."trust_level", "users"."approved", "users"."approved_by_id", "users"."approved_at", "users"."previous_visit_at", "users"."suspended_at", "users"."suspended_till", "users"."date_of_birth", "users"."views", "users"."flag_level", "users"."ip_address", "users"."moderator", "users"."title", "users"."uploaded_avatar_id", "users"."locale", "users"."primary_group_id", "users"."registration_ip_address", "users"."staged", "users"."first_seen_at", "users"."silenced_till", "users"."group_locked_trust_level", "users"."manual_locked_trust_level", "users"."secure_identifier", "users"."flair_group_id", "users"."last_seen_reviewable_id", "users"."required_fields_version", "users"."seen_notification_id" FROM "users" WHERE "users"."id" = 1 LIMIT 1
UserOption Load (3.5ms) SELECT "user_options"."user_id", "user_options"."mailing_list_mode", "user_options"."email_digests", "user_options"."external_links_in_new_tab", "user_options"."enable_quoting", "user_options"."dynamic_favicon", "user_options"."automatically_unpin_topics", "user_options"."digest_after_minutes", "user_options"."auto_track_topics_after_msecs", "user_options"."new_topic_duration_minutes", "user_options"."last_redirected_to_top_at", "user_options"."email_previous_replies", "user_options"."email_in_reply_to", "user_options"."like_notification_frequency", "user_options"."mailing_list_mode_frequency", "user_options"."include_tl0_in_digests", "user_options"."notification_level_when_replying", "user_options"."theme_key_seq", "user_options"."allow_private_messages", "user_options"."homepage_id", "user_options"."theme_ids", "user_options"."hide_profile_and_presence", "user_options"."text_size_key", "user_options"."text_size_seq", "user_options"."email_level", "user_options"."email_messages_level", "user_options"."title_count_mode_key", "user_options"."enable_defer", "user_options"."timezone", "user_options"."enable_allowed_pm_users", "user_options"."dark_scheme_id", "user_options"."skip_new_user_tips", "user_options"."color_scheme_id", "user_options"."default_calendar", "user_options"."chat_enabled", "user_options"."only_chat_push_notifications", "user_options"."oldest_search_log_date", "user_options"."chat_sound", "user_options"."dismissed_channel_retention_reminder", "user_options"."dismissed_dm_retention_reminder", "user_options"."bookmark_auto_delete_preference", "user_options"."ignore_channel_wide_mention", "user_options"."chat_email_frequency", "user_options"."enable_experimental_sidebar", "user_options"."seen_popups", "user_options"."chat_header_indicator_preference", "user_options"."sidebar_link_to_filtered_list", "user_options"."sidebar_show_count_of_new_items", "user_options"."watched_precedence_over_muted", "user_options"."chat_separate_sidebar_mode", "user_options"."topics_unread_when_closed", "user_options"."show_thread_title_prompts", "user_options"."enable_smart_lists", "user_options"."hide_profile", "user_options"."hide_presence", "user_options"."chat_send_shortcut" FROM "user_options" WHERE "user_options"."user_id" = 1 LIMIT 1
UserRequiredFieldsVersion Maximum (1.5ms) SELECT MAX("user_required_fields_versions"."id") FROM "user_required_fields_versions"
(1.2ms) SELECT "group_users"."group_id" FROM "group_users" WHERE "group_users"."user_id" = 1
Chat::Channel Load (1.2ms) SELECT "chat_channels"."id", "chat_channels"."chatable_id", "chat_channels"."deleted_at", "chat_channels"."deleted_by_id", "chat_channels"."featured_in_category_id", "chat_channels"."delete_after_seconds", "chat_channels"."chatable_type", "chat_channels"."created_at", "chat_channels"."updated_at", "chat_channels"."name", "chat_channels"."description", "chat_channels"."status", "chat_channels"."user_count", "chat_channels"."auto_join_users", "chat_channels"."user_count_stale", "chat_channels"."type", "chat_channels"."slug", "chat_channels"."allow_channel_wide_mentions", "chat_channels"."messages_count", "chat_channels"."threading_enabled", "chat_channels"."last_message_id", "chat_channels"."icon_upload_id" FROM "chat_channels" LEFT JOIN categories ON categories.id = chat_channels.chatable_id AND chat_channels.chatable_type = 'Category' WHERE "chat_channels"."deleted_at" IS NULL AND (chat_channels.id = 1 OR categories.slug = '1' OR chat_channels.slug = '1') LIMIT 1
Chat::UserChatChannelMembership Load (1.1ms) SELECT "user_chat_channel_memberships"."id", "user_chat_channel_memberships"."user_id", "user_chat_channel_memberships"."chat_channel_id", "user_chat_channel_memberships"."last_read_message_id", "user_chat_channel_memberships"."following", "user_chat_channel_memberships"."muted", "user_chat_channel_memberships"."created_at", "user_chat_channel_memberships"."updated_at", "user_chat_channel_memberships"."last_unread_mention_when_emailed_id", "user_chat_channel_memberships"."join_mode", "user_chat_channel_memberships"."last_viewed_at", "user_chat_channel_memberships"."notification_level" FROM "user_chat_channel_memberships" WHERE "user_chat_channel_memberships"."chat_channel_id" = 1 AND "user_chat_channel_memberships"."user_id" = 1 LIMIT 1
Chat::DirectMessage Load (1.1ms) SELECT "direct_message_channels".* FROM "direct_message_channels" WHERE "direct_message_channels"."id" = 1 LIMIT 1
User Count (1.1ms) SELECT COUNT(*) FROM "users" INNER JOIN "direct_message_users" ON "users"."id" = "direct_message_users"."user_id" WHERE "direct_message_users"."direct_message_channel_id" = 1
Chat::Message Load (0.8ms) SELECT "chat_messages".* FROM "chat_messages" WHERE "chat_messages"."deleted_at" IS NULL AND "chat_messages"."id" IS NULL LIMIT 1
Completed 500 Internal Server Error in 64ms (ActiveRecord: 16.4ms (10 queries, 0 cached) | GC: 1.1ms)
Rendered /home/developer/.rvm/gems/ruby-3.2.1@discourse/gems/actionpack-7.2.2.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.text.erb (Duration: 5.7ms | GC: 0.1ms)