Skip to content

[Bug][Windows][UX] No error message displayed when channel connection fails #992

@shangxinyu1

Description

@shangxinyu1

Environment

Platform: Windows
Version: Latest (0.1.10 or recent nightly builds)
Affected Channels: All (WeChat, WhatsApp, Telegram, Discord, QQ, DingTalk)

Steps to Reproduce

  1. Launch nexu on Windows
  2. Attempt to connect a channel (e.g., WeChat, QQ, Telegram, etc.)
  3. If the connection fails (due to network issues, authentication problems, or other errors)
  4. Observe the UI response

Actual Behavior

When channel connection fails:

  • No error message is displayed to the user
  • The UI provides no feedback about why the connection failed
  • Users are left uncertain whether:
    • The connection is still in progress
    • The connection has failed silently
    • There's an issue with their credentials/setup
  • The channel status may remain stuck in "Connecting" or revert to "Disconnected" without explanation

Expected Behavior

When a channel connection fails, the application should:

  1. Display a clear error message indicating the failure
  2. Provide specific information about the error cause (e.g., "Authentication failed", "Network timeout", "Invalid QR code")
  3. Suggest next steps for the user (e.g., "Please check your network connection and retry", "Re-scan QR code", "Verify credentials")
  4. Show the error in a toast notification, modal dialog, or inline message
  5. Log the error details for debugging purposes

Impact

Severity: P1 (High)

  • Poor user experience - users don't know what went wrong
  • Increased support burden - users can't self-diagnose connection issues
  • Frustration when connections fail silently
  • Users may assume the app is broken when it's actually a configuration/network issue

Suggested Fix

Image

Add error handling and user-facing error messages for all channel connection failures:

  • Network errors: "Unable to connect. Please check your internet connection."
  • Authentication errors: "Login failed. Please verify your credentials."
  • QR code errors: "QR code expired. Please scan again."
  • Timeout errors: "Connection timeout. Please try again."
  • Generic fallback: "Failed to connect to [Channel]. Error: [error message]"

Related Issues

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpriority:p1P1-important: Significant impact, fix within 2 weekswindowsWindows platform support

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions