awslabs / amazon-kinesis-video-streams-webrtc-sdk-ios

iOS SDK for interfacing with the Amazon Kinesis Video Streams Signaling Service.
Apache License 2.0
63 stars 28 forks source link

WSError(type: Starscream.ErrorType.upgradeError, message: \"Invalid HTTP upgrade\", code: 400) #51

Closed haihm1997 closed 2 years ago

haihm1997 commented 2 years ago

Hi everyone! I'm writing an app using AWS WebRTC SDK for iOS and facing an issue about signing: "Disconnected from signaling. WSError(type: Starscream.ErrorType.upgradeError, message: \"Invalid HTTP upgrade\", code: 400)" My project has credential, channel ARN and HTTP(WSS) endpoint are got from Backend. I'm using Starscream (3.1.1) This is my WSS URL that I used to init SignalingClient

image Please help me a solution!

tylerjames commented 2 years ago

I'm getting the same issue using Starscream 4.0.4 and seeing it conjunction with:

Starscream.WSError(type: Starscream.ErrorType.protocolError, message: "masked and rsv data is not currently supported", code: 1002)

I was able to run the demo but after incorporating the functionality into my code I'm encountering this when trying to connect the signalling client.

My app is using Swift 5

haihm1997 commented 2 years ago

Resolved! This issue occur due I passing incorrect channel_arn format value

pablogeek commented 1 month ago

@haihm1997 can you clarify?