Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handshake status 200 OK #1

Open
yyanchu opened this issue Feb 17, 2023 · 12 comments
Open

Handshake status 200 OK #1

yyanchu opened this issue Feb 17, 2023 · 12 comments

Comments

@yyanchu
Copy link

yyanchu commented Feb 17, 2023

报错:Handshake status 200 OK 是什么原因
我用的是websocket-client 版本是1.5.1
代码没有改动

@Prince-cool
Copy link
Owner

验证sign了,自己加上就好

@yyanchu
Copy link
Author

yyanchu commented Feb 17, 2023

是signature这个参数吗?
这个参数是不是需要重新逆向

@Prince-cool
Copy link
Owner

Prince-cool commented Feb 17, 2023 via email

@yyanchu
Copy link
Author

yyanchu commented Feb 17, 2023

代码中哪个变量是signature啊
或者获取方式是什么

@Prince-cool
Copy link
Owner

Prince-cool commented Feb 17, 2023 via email

@yyanchu
Copy link
Author

yyanchu commented Feb 17, 2023

感谢大佬

@yyanchu
Copy link
Author

yyanchu commented Feb 17, 2023

问题解决了。
有个sign.js的文件,里面就是signature的计算方法,获取之后放到wss_url最后面就可以了。
感谢大佬!

@YdayangY
Copy link

Sorry, something went wrong.

博主你好,我今天用了你的这个代码,发现sign.js构造出来的x-b参数不正确。

@Prince-cool
Copy link
Owner

因为不同接口对x-b的风控力度不同,这个sign里面补充的环境不足以解决,因为检测了node环境,可以通过其他方式补环境,或者自行还原算法。

@yyanchu
Copy link
Author

yyanchu commented Mar 16, 2023

大佬可以更新一下吗

@Cxb168
Copy link

Cxb168 commented May 10, 2023

报错:Handshake status 200 OK 是什么原因 我用的是websocket-client 版本是1.5.1 代码没有改动

我遇到相同问题,在url后面加signature也一样。能详细说下是怎么解决的吗

@Prince-cool
Copy link
Owner

加上signature就可以了,可能是你分析加密错误了,新版本暂时不发,避免不必要的风险,自己研究就好了

Repository owner deleted a comment from ttv963214785 Apr 14, 2024
Repository owner deleted a comment from ttv963214785 Apr 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@Cxb168 @YdayangY @Prince-cool @yyanchu and others