Skip to content

Client-Server connection not established using Swift-NIO #3064

@amore4193

Description

@amore4193

We are experiencing an issue where the client and server connection is not being established. We are using the Swift-NIO library with the following versions:

This is the reference code for the client. the issue the happening after updating Xcode version - 15.1.0 to 16.1.0 for SDK 18 support.
https://github.com/apple/swift-nio/blob/2.40.0/Sources/NIOWebSocketClient/main.swift

SwiftNIO: 2.40.0
SwiftNIOHTTP1: 2.40.0
SwiftNIOWebSocket: 2.40.0
SwiftNIOSSL: 2.19.0

Client-side: Xcode 16.1.0

Expected Behavior
The client should successfully connect to the server without issues.

Actual Behavior
We are getting the upgraderDeniedUpgrade error from errorCaught method of class HTTPInitialRequestHandler

The connection between the client and server fails without any clear errors. We have verified that both sides are running compatible Swift-NIO above versions. any guidance, suggestions, or help diagnosing this issue would be greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions