Skip to content

[Bug]: LSE的WSClient无法与部分ws服务器建立连接 #221

@HuoHuas001

Description

@HuoHuas001

Describe the bug

Image
使用SpringBoot构建一个WsServer时,会报出以上报错,但其他的库如Python的websockets和java-websocket都是可以正常连接的
可能是LSE使用的LightWebSocketClient在建立连接的时候传入的Header有问题


经实验后

发现是LightWebSocketClient中的WebSocketClient.cpp Line:245引起的Header无法被解析,使用Postman请求时,没有Origin这个Header,稍后会向LightWebSocketClient发起Issues

To Reproduce

RT

Expected behavior

RT

Screenshots

No response

Platform

Windows 11

BDS Version

1.21.51

LeviLamina Version

1.0.1

LegacyScriptEngine Version

0.9.4

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions