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

使用Cookie设置用户后,无法正常聊天 #141

Closed
Winnie0408 opened this issue Jun 2, 2023 · 12 comments
Closed

使用Cookie设置用户后,无法正常聊天 #141

Winnie0408 opened this issue Jun 2, 2023 · 12 comments

Comments

@Winnie0408
Copy link

不使用Cookie,直接与Bing聊天,可以正常对话;
复制Cookie中_U的值,粘贴到 设置用户 对话框,保存,并点击扫把按钮重置对话:
无论发送什么,都一直提示“很抱歉,似乎出现错误。让我们重新开始吧。”
但画图可用。
image

image

@adams549659584
Copy link
Owner

看看浏览器控制台有没有报错,自己部署的话,需要 https 和 域名的

@yincangshiwei
Copy link

yincangshiwei commented Jun 4, 2023

看看浏览器控制台有没有报错,自己部署的话,需要 https 和 域名的
我也是,已经是https和域名状态了。只有绘画可用,控制台也没有报错。

@Winnie0408
Copy link
Author

看看浏览器控制台有没有报错,自己部署的话,需要 https 和 域名的

通过nginx,使用了HTTPS,并绑定了域名,未登录状态可以正常聊天;只要输入了_U的值,就无法聊天。
换用Railway部署,输入同样的_U值,可以正常聊天。

@polarisaspire
Copy link

我也遇到了同样的问题,请问有进展吗

@Winnie0408
Copy link
Author

我也遇到了同样的问题,请问有进展吗

暂时还没有呢😭😭😭

可以先用其他的在线部署,比如README中介绍的Railway等,实测用cookie设置用户后,可以正常聊天
(但是Railway国内不能直接访问😂😂😂)

@polarisaspire
Copy link

polarisaspire commented Jun 6, 2023

map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}

server {
listen 443 ssl;
server_name bing.xxx.com;

ssl_certificate xxxx.crt; # 证书地址
ssl_certificate_key xxxxx.key; # 秘钥地址

location / {
proxy_pass http://127.0.0.1:8080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Port $server_port;
}
}

nginx配置没写对,改一下就可以了,针对ws做一下区分

@Winnie0408
Copy link
Author

map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}

server {
listen 443 ssl;
server_name bing.xxx.com;

ssl_certificate xxxx.crt; # 证书地址
ssl_certificate_key xxxxx.key; # 秘钥地址

location / {
proxy_pass http://127.0.0.1:8080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Port $server_port;
}
}

nginx配置没写对,改一下就可以了,针对ws做一下区分

还是不行😂😂😂
但是现在不提示“让我们重新开始”了,而是卡在“正在尝试连接,请稍候”,刷新网页也还是显示这个😐😐😐

@polarisaspire
Copy link

map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 443 ssl;
server_name bing.xxx.com;
ssl_certificate xxxx.crt; # 证书地址
ssl_certificate_key xxxxx.key; # 秘钥地址
location / {
proxy_pass http://127.0.0.1:8080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Port $server_port;
}
}
nginx配置没写对,改一下就可以了,针对ws做一下区分

还是不行😂😂😂 但是现在不提示“让我们重新开始”了,而是卡在“正在尝试连接,请稍候”,刷新网页也还是显示这个😐😐😐

这就不知道的,反正我的ok了

@yincangshiwei
Copy link

map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 443 ssl;
server_name bing.xxx.com;
ssl_certificate xxxx.crt; # 证书地址
ssl_certificate_key xxxxx.key; # 秘钥地址
location / {
proxy_pass http://127.0.0.1:8080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Port $server_port;
}
}
nginx配置没写对,改一下就可以了,针对ws做一下区分

还是不行😂😂😂 但是现在不提示“让我们重新开始”了,而是卡在“正在尝试连接,请稍候”,刷新网页也还是显示这个😐😐😐

这就不知道的,反正我的ok了

我用云函数没有nginx

@Winnie0408
Copy link
Author

map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 443 ssl;
server_name bing.xxx.com;
ssl_certificate xxxx.crt; # 证书地址
ssl_certificate_key xxxxx.key; # 秘钥地址
location / {
proxy_pass http://127.0.0.1:8080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Port $server_port;
}
}
nginx配置没写对,改一下就可以了,针对ws做一下区分

还是不行😂😂😂 但是现在不提示“让我们重新开始”了,而是卡在“正在尝试连接,请稍候”,刷新网页也还是显示这个😐😐😐

这就不知道的,反正我的ok了

我用云函数没有nginx

本地部署才要用nginx来反向代理,套个https

@fanrengyiping
Copy link

fanrengyiping commented Jun 13, 2023 via email

@Harry-zklcdc
Copy link

已修复,#282

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

6 participants