Skip to content

fix(connections): Redis and MongoDB Test Connection says only "failed", without the reason #1308

Description

@ZhuchkaTriplesix

Problem

RedisConnection.testConnection() (lib/core/database/redis_connection.dart) and MongoConnection.testConnection() return bool. The forms show 'success' or 'failed':

  • lib/features/redis/redis_connection_form.dart:201
  • lib/features/mongodb/mongodb_connection_form.dart:305

The mapped reason (Authentication failed, Cannot reach the database server, timed out, the SSH reason) is dropped (a debugPrint at most). PostgreSQL and MySQL already return (ok, error) and show the message.

Scope

  • Return ({bool ok, String? error}) from both, with describeDatabaseError, as the PostgreSQL / MySQL tests do.
  • Show the message in the forms.

Acceptance

  • A wrong Redis password shows Authentication failed with its hint.
  • An unreachable MongoDB host shows the unreachable message.
  • A successful test still shows success.

Activity

  1. added
    bugSomething isn't working
    error-handlingTheme parser epic label: error-handling
    connectionsDatabase connections, URI parsing, pools
    uxUser experience, keyboard shortcuts and interactions
    P2Medium priority / Parity & Refactoring
    on Oct 10, 2026
  2. ZhuchkaTriplesix commented on Oct 10, 2026

    @ZhuchkaTriplesix
    MemberAuthor

    MySQL has the same problem: lib/features/mysql/mysql_connection_form.dart shows ok ? 'success' : 'failed' from MysqlConnection.testConnection() (returns bool), so the reason is lost there too. Include it in this issue's scope (the review listed only Redis and MongoDB).

  3. added a commit that references this issue on Oct 10, 2026
  4. ZhuchkaTriplesix commented on Oct 10, 2026

    @ZhuchkaTriplesix
    MemberAuthor

    Сделано в #1323, смержено в dev.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

P2Medium priority / Parity & RefactoringbugSomething isn't workingconnectionsDatabase connections, URI parsing, poolserror-handlingTheme parser epic label: error-handlinguxUser experience, keyboard shortcuts and interactions

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions