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

WebSocket解析异常 #316

Open
Anekys opened this issue Sep 19, 2024 · 2 comments
Open

WebSocket解析异常 #316

Anekys opened this issue Sep 19, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Anekys
Copy link

Anekys commented Sep 19, 2024

描述错误(Describe the bug)
应该是一个通用的问题,Android,Windows均可复现.
具体表现为:同样的请求使用Charles可以正确展示内容,但是ProxyPin会显示乱码
跟着代码调了一下,发现是UTF8解码时抛了异常,转用AscII码形式的去解码.
目前还不确定是因为整体报文解析的问题还是单纯的解码的问题
To Reproduce
随便找一个使用WebSocket好像都可以.
例如vx小程序里的瑞幸咖啡. 刚打开时有一个wss的report.

*屏幕截图(Screenshots)
ProxyPin
image
Charles
image

@Anekys Anekys added the bug Something isn't working label Sep 19, 2024
@Anekys
Copy link
Author

Anekys commented Sep 19, 2024

通过payload对比,应该是解析问题. 比较奇怪的是有的包解析的是正常的,有的包就有问题.

正常的包(体积较小)
image
image

异常的包
ProxyPin:
image
Charles:
image

@Anekys
Copy link
Author

Anekys commented Sep 19, 2024

image
解析异常位置

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant