Skip to content

macOS: OAuth callback fails with SSL_ERROR_RX_RECORD_TOO_LONG on 127.0.0.1 #954

Description

@Swindle98

Describe the bug

When attempting to add an account on macOS using the desktop client, the OAuth login flow opens the browser successfully and authentication completes, but the callback to the local listener on 127.0.0.1 fails with:

Secure Connection Failed
An error occurred during a connection to 127.0.0.1:<port>. SSL received a record that exceeded the maximum permissible length.

This happens across all three browsers (Firefox, Chrome, Safari) so it is not browser-specific. The server itself is working correctly — the web UI is fully functional and the iOS app authenticates and syncs without any issues.

Steps to reproduce

Open OpenCloud Desktop 3.0.3 on macOS
Click "Add Account"
Enter server URL (https://cloud.example.com)
Click "Open web browser"
Complete login in browser
Browser attempts to redirect to 127.0.0.1: and fails with SSL error

Expected behaviour

OAuth callback completes successfully and the desktop client is authenticated.

Actual behaviour

All browsers report SSL_ERROR_RX_RECORD_TOO_LONG when the callback hits 127.0.0.1. The desktop client never receives the auth token.
Environment

Client version: 3.0.3
Server version: 7.1.0 (rolling)
macOS version: macOS 26.5
Server setup: Docker container behind nginx reverse proxy (SWAG), Cloudflare tunnel, PROXY_TLS=false, OC_INSECURE=true
Tested browsers: Firefox, Chrome, Safari — all exhibit the same error

Additional context

The iOS app connects and syncs without issue, confirming the server configuration is correct. The problem appears to be specific to how the desktop client sets up the local OAuth callback listener on macOS — it appears to be expecting or receiving a TLS handshake on what should be a plain HTTP local listener.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions