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

[Bug] windows客户端无法同步 #5151

Open
xengine-qyt opened this issue Jul 31, 2024 · 34 comments
Open

[Bug] windows客户端无法同步 #5151

xengine-qyt opened this issue Jul 31, 2024 · 34 comments
Labels
bug Something isn't working

Comments

@xengine-qyt
Copy link

📦 部署方式

官方安装包

📌 软件版本

2.14

💻 系统环境

Windows

📌 系统版本

11

🌐 浏览器

Edge

📌 浏览器版本

127

🐛 问题描述

自己部署了一个webdav服务,通过curl测试上传下载正常
curl -u 123123:123123 -T ./1.txt https://webdav.xxx.org/2.txt
curl -u 123123:123123 https://webdav.xxx.org/2.txt
浏览器也可以正常访问下载,不知道为啥客户端一直无法同步,同步失败

📷 复现步骤

No response

🚦 期望结果

No response

📝 补充信息

No response

@xengine-qyt xengine-qyt added the bug Something isn't working label Jul 31, 2024
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: [Bug] windows client cannot synchronize

@xengine-qyt
Copy link
Author

the client has not request? wireshark have no packet

@ahzmr
Copy link
Contributor

ahzmr commented Aug 4, 2024

#5174 我修复了这个问题,你可以试试我的版本。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


#5174 I fixed the issue, you can try my version.

@xengine-qyt
Copy link
Author

#5174 我修复了这个问题,你可以试试我的版本。

最新版本合并了?2.14.2 我试过不行呢?配置有问题吗?
image
抓包什么都没有
image

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


#5174 I fixed this issue, you can try my version.

Is the latest version merged? 2.14.2 I tried it but it doesn’t work? Is there something wrong with the configuration?
image
There is nothing in the packet capture
image

@ahzmr
Copy link
Contributor

ahzmr commented Aug 22, 2024

#5174 我修复了这个问题,你可以试试我的版本。

最新版本合并了?2.14.2 我试过不行呢?配置有问题吗?

这修改已经合并了,你这没有点检查可用性吧?再注意一下配置WHITE_WEBDEV_ENDPOINTS,再我看你配置的本地的webdav服务,如果你用docker部署,这样配置不行。这个点击看看,以及外面的同步功能。如果出问题,可以看看抓包情况。也可以试试我用的这个版本docker image: ahzmr/chatgpt-next-web

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


#5174 I fixed this problem, you can try my version.

The latest version is merged? 2.14.2 I tried it but it doesn’t work? Is there something wrong with the configuration? ![image](https://private-user-images.githubusercontent.com/37919215/360359457-34d7bc95-eeb8-48d8-a053 -2355cc46422b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..BglECiCAfWaMZw0yNBJhXMP0RvDSmRUYa-qNiTrBWM4) There is nothing in the packet capture![image](https://private-user-images.githubusercontent.com/37919215 /360359597-ae80a388-7720-4aaa-a5fd- e80774ceae8d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..Qcr830dD6K-3TKVqk9vmkldZkFylOnD-eCbYFkdppew)

This modification has been merged. Have you checked the availability? Click to see this, as well as the synchronization function outside. If something goes wrong, you can check the packet capture status. You can also try the version I used docker image: ahzmr/chatgpt-next-web

@xengine-qyt
Copy link
Author

xengine-qyt commented Aug 23, 2024

#5174 我修复了这个问题,你可以试试我的版本。

最新版本合并了?2.14.2 我试过不行呢?配置有问题吗?

这修改已经合并了,你这没有点检查可用性吧?再注意一下配置WHITE_WEBDEV_ENDPOINTS,再我看你配置的本地的webdav服务,如果你用docker部署,这样配置不行。这个点击看看,以及外面的同步功能。如果出问题,可以看看抓包情况。也可以试试我用的这个版本docker image: ahzmr/chatgpt-next-web

点了没用,wireshark什么都抓不到.没有请求
output

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


#5174 I fixed this issue, you can try my version.

The latest version is merged? I tried 2.14.2 but it doesn’t work? Is there something wrong with the configuration?

This modification has been merged. Didn't you click to check the availability? Pay attention to configuring WHITE_WEBDEV_ENDPOINTS again, and then look at the local webdav service you configured. If you use docker to deploy, this configuration will not work. Click to see this, as well as the synchronization function outside. If something goes wrong, you can check the packet capture status. You can also try the version I used docker image: ahzmr/chatgpt-next-web

It's no use if you order it
output

@Lyinsun
Copy link

Lyinsun commented Sep 20, 2024

同步问题看来还是没有解决,想问问这个本地数据都是保存在哪里的?能不能直接同步文件数据?

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


The problem of synchronization still seems to have not been solved. I want to ask where the local data is preserved? Can I synchronize file data directly?

@xengine-qyt
Copy link
Author

同步问题看来还是没有解决,想问问这个本地数据都是保存在哪里的?能不能直接同步文件数据?

这个功能可能没人维护

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


The synchronization problem seems to be still unresolved. I would like to ask where the local data is stored? Can I synchronize file data directly?

This function may not be maintained by anyone

@showyourlucky
Copy link

是不是因为Windows下不能设置WHITE_WEBDAV_ENDPOINTS, 所有导致同步用不了

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Is it because WHITE_WEBDAV_ENDPOINTS cannot be set under Windows, so synchronization cannot be used?

@xengine-qyt
Copy link
Author

是不是因为Windows下不能设置WHITE_WEBDAV_ENDPOINTS, 所有导致同步用不了

那是什么,不知道.我是直接全部手撸的服务端代码, 测试WINDOWS自带的WEBDAV是可以的.

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Is it because WHITE_WEBDAV_ENDPOINTS cannot be set under Windows, so synchronization cannot be used?

I don’t know what that is. I just hand-coded all the server-side code. It’s okay to test the WEBDAV that comes with WINDOWS.

@showyourlucky
Copy link

是不是因为Windows下不能设置WHITE_WEBDAV_ENDPOINTS, 所有导致同步用不了

那是什么,不知道.我是直接全部手撸的服务端代码, 测试WINDOWS自带的WEBDAV是可以的.

我在本地部署测试了下, 配置相同的webdav参数, 在浏览器中是可用同步的, 但是用tauri打包成exe就同步失败, 我再加点日志看看

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Is it because WHITE_WEBDAV_ENDPOINTS cannot be set under Windows, so synchronization cannot be used?

I don’t know what that is. I just hand-coded all the server-side code. It’s okay to test the WEBDAV that comes with WINDOWS.

I tested it in local deployment and configured the same webdav parameters. Synchronization is available in the browser, but synchronization fails when packaged into exe using tauri. I will add more logs to take a look.

@showyourlucky
Copy link

showyourlucky commented Oct 11, 2024

我大概找到问题的原因了。使用的打包命令是 cross-env BUILD_MODE=export BUILD_APP=1 next build,这导致 next.config.mjs 在执行时有一些配置项没有设置,进而导致 app\api\webdav\[...path]\route.ts 的路由失效。结果是,当点击同步时,发起的请求 http://localhost:3000/api/webdav/chatgpt-next-web/backup.json?endpoint=https://gima.teracloud.jp/dav/ 返回了404错误。

我尝试把 BUILD_MODE=export 修改为 BUILD_MODE=standalone,然后用命令yarn tauri dev打包完成后,WebDAV 同步功能可以正常使用。不过 使用yarn tauri build打包的又不能同步, 我不明白为什么

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


I probably found the cause of the problem. The packaging command used is cross-env BUILD_MODE=export BUILD_APP=1 next build, which causes next.config.mjs to have some configuration items not set during execution, which leads to app\api\webdav\[.. The route in .path]\route.ts is invalid. The result is that when sync is clicked, the initiated request http://localhost:3000/api/webdav/chatgpt-next-web/backup.json?endpoint=https://gima.teracloud.jp/dav/ returns Got a 404 error.

I tried to change BUILD_MODE=export to BUILD_MODE=standalone. After the packaging is completed, the WebDAV synchronization function can work normally. However, I'm not sure if there will be any other problems with this change.

@showyourlucky
Copy link

我大概找到问题的原因了。使用的打包命令是 cross-env BUILD_MODE=export BUILD_APP=1 next build,这导致 next.config.mjs 在执行时有一些配置项没有设置,进而导致 app\api\webdav\[...path]\route.ts 的路由失效。结果是,当点击同步时,发起的请求 http://localhost:3000/api/webdav/chatgpt-next-web/backup.json?endpoint=https://gima.teracloud.jp/dav/ 返回了404错误。

我尝试把 BUILD_MODE=export 修改为 BUILD_MODE=standalone,然后用命令yarn tauri dev打包完成后,WebDAV 同步功能可以正常使用。不过 使用yarn tauri build打包的又不能同步, 我不明白为什么

重新试了下, 把BUILD_MODE改成BUILD_MODE=standalone, 发现yarn tauri dev打包后居然不能同步了

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


I probably found the cause of the problem. The packaging command used is cross-env BUILD_MODE=export BUILD_APP=1 next build, which causes next.config.mjs to have some configuration items not set during execution, which leads to app\api\webdav\[.. The route in .path]\route.ts is invalid. The result is that when sync is clicked, the initiated request http://localhost:3000/api/webdav/chatgpt-next-web/backup.json?endpoint=https://gima.teracloud.jp/dav/ returns Got a 404 error.

I tried to change BUILD_MODE=export to BUILD_MODE=standalone, and then used the command yarn tauri dev to package, and the WebDAV synchronization function can be used normally. However, those packaged using yarn tauri build cannot be synchronized. I don’t understand why.

I tried again, changed BUILD_MODE to BUILD_MODE=standalone, and found that yarn tauri dev could not be synchronized after being packaged.

@xengine-qyt
Copy link
Author

我大概找到问题的原因了。使用的打包命令是 cross-env BUILD_MODE=export BUILD_APP=1 next build,这导致 next.config.mjs 在执行时有一些配置项没有设置,进而导致 app\api\webdav\[...path]\route.ts 的路由失效。结果是,当点击同步时,发起的请求 http://localhost:3000/api/webdav/chatgpt-next-web/backup.json?endpoint=https://gima.teracloud.jp/dav/ 返回了404错误。
我尝试把 BUILD_MODE=export 修改为 BUILD_MODE=standalone,然后用命令yarn tauri dev打包完成后,WebDAV 同步功能可以正常使用。不过 使用yarn tauri build打包的又不能同步, 我不明白为什么

重新试了下, 把BUILD_MODE改成BUILD_MODE=standalone, 发现yarn tauri dev打包后居然不能同步了

..就是 WINDOWS版本客户端不能同步呗.

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


I probably found the cause of the problem. The packaging command used is cross-env BUILD_MODE=export BUILD_APP=1 next build, which causes next.config.mjs to have some configuration items not set during execution, which leads to app\api\webdav\[.. The route in .path]\route.ts is invalid. The result is that when sync is clicked, the initiated request http://localhost:3000/api/webdav/chatgpt-next-web/backup.json?endpoint=https://gima.teracloud.jp/dav/ returns Got a 404 error.
I tried to change BUILD_MODE=export to BUILD_MODE=standalone, and then used the command yarn tauri dev to package, and the WebDAV synchronization function can be used normally. However, those packaged using yarn tauri build cannot be synchronized. I don’t understand why.

Tried again, changed BUILD_MODE to BUILD_MODE=standalone, and found that yarn tauri dev could not be synchronized after being packaged.

..It’s just that the WINDOWS version client cannot synchronize.

@lloydzhou
Copy link
Contributor

之前在客户端大多都使用在线的api解决跨域的问题。
在v2.15.4版本中支持使用rust的http client发送消息,解决了客户端的跨域问题。后续应该可以在这个版本基础上解决这个问题

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Previously, most clients used online APIs to solve cross-domain problems.
In the v2.15.4 version, it is supported to use the rust http client to send messages, which solves the cross-domain problem of the client. This problem should be solved based on this version in the future.

@lxysl
Copy link

lxysl commented Oct 24, 2024

mac版 2.15.5 也同样无法同步,webdav 和 upstash 都不行。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


The mac version 2.15.5 also cannot be synchronized, neither webdav nor upstash works.

@pilgrim1385
Copy link

mac版 2.15.5 也同样无法同步,webdav 和 upstash 都不行。

+1

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Mac version 2.15.5 also cannot be synchronized, neither webdav nor upstash works.

+1

@Cold-Stars
Copy link

#5174 我修复了这个问题,你可以试试我的版本。
不行,虽然提示同步成功了,但是根本没同步,也没有任何同步的请求

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


#5174 I fixed this issue, you can try my version.
No, although the synchronization was successful, there was no synchronization at all, and there was no request for synchronization.

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

9 participants