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

Fix: fastapi 中重复声明 host 导致的 反向ws 异常。 #589

Closed
wants to merge 19 commits into from

Conversation

d-w-x
Copy link

@d-w-x d-w-x commented Nov 17, 2021

异常情况:
websockets.exceptions.InvalidStatusCode: server rejected WebSocket connection: HTTP 400

异常配置:
CQHTTP_WS_URLS={"qq":"ws://ip:port/"}

@github-actions
Copy link
Contributor

🚀 Deployed on https://deploy-preview-589--nonebot2.netlify.app

@yanyongyu yanyongyu changed the base branch from master to dev November 18, 2021 02:36
@yanyongyu
Copy link
Member

yanyongyu commented Nov 18, 2021

该问题已在dev分支修复,issue #560 #561

headers = setup_.headers.copy()

@yanyongyu yanyongyu added the duplicate This issue or pull request already exists label Nov 18, 2021
@yanyongyu
Copy link
Member

如果没什么问题就close了

@yanyongyu yanyongyu closed this Nov 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Development

Successfully merging this pull request may close these issues.