[Bug] WebDAV Sync Failed
Bug Description
Cannot sync with webdav
Steps to Reproduce
chatgpt-next-web version: v2.12.3 webdav address: https://dav.jianguoyun.com/dav no proxy address no data or folders in cloud storage
dev tools show: request url: https://chat-gpt-next-web-6hy1.vercel.app/api/webdav/chatgpt-next-web/backup.json?endpoint=https://dav.jianguoyun.com/dav/ Get 502 Response: error code: 520
Expected Behavior
Sync correctly
Screenshots
No response
Deployment Method
- [ ] Docker
- [X] Vercel
- [ ] Server
Desktop OS
No response
Desktop Browser
No response
Desktop Browser Version
No response
Smartphone Device
No response
Smartphone OS
No response
Smartphone Browser
No response
Smartphone Browser Version
No response
Additional Logs
No response
我也是
Bot detected the issue body's language is not English, translate it automatically.
Me too
我也是,尝试了多个webdav都无法正常同步。 还请作者大神帮忙看看
Bot detected the issue body's language is not English, translate it automatically.
Me too, I tried multiple webdavs but couldn't sync them properly. Please also ask the author to help me take a look
我用坚果云也是这样
Bot detected the issue body's language is not English, translate it automatically.
Me too
Me too
metoo
me too,我也是,多个webdav无法同步
Bot detected the issue body's language is not English, translate it automatically.
me too, me too, multiple webdavs cannot be synchronized
i tried 123pan,jianguoyun webdav,no one can sync data
用main分支自己部署的可以备份成功。。。
Bot detected the issue body's language is not English, translate it automatically.
If you deploy it yourself using the main branch, you can successfully back it up. . .
用main分支自己部署的可以备份成功。。。
自己部署的网页 跟他的示例网页 有什么区别吗
Bot detected the issue body's language is not English, translate it automatically.
If you deploy it yourself using the main branch, you can successfully back it up. . .
Is there any difference between the web page I deployed and his sample web page?
You need to add your WebDAV endpoint to allowed list in ../../app/constant.ts
// some famous webdav endpoints
export const internalAllowedWebDavEndpoints = [
"https://dav.jianguoyun.com/dav/",
"https://dav.dropdav.com/",
"https://dav.box.com/dav",
"https://nanao.teracloud.jp/dav/",
"https://bora.teracloud.jp/dav/",
"https://webdav.4shared.com/",
"https://dav.idrivesync.com",
"https://webdav.yandex.com",
"https://app.koofr.net/dav/Koofr",
// Your endpoint…
];
我解决了这个问题,可以试试这个版本,还支持自动同步数据和同步删除消息与会话操作。 #5236
Bot detected the issue body's language is not English, translate it automatically.
I solved this problem and you can try this version. It also supports automatic data synchronization and synchronized deletion of messages and conversation operations. #5236
is there anyone to follow up this issue on main branch?
最新的main分支,在vercel部署,还是不能通过webdav同步,报错520
Bot detected the issue body's language is not English, translate it automatically.
The latest main branch, deployed in vercel, still cannot be synchronized through webdav, and error 520 is reported.
Bot detected the issue body's language is not English, translate it automatically.
The latest main branch, deployed in vercel, still cannot be synchronized through webdav, and error 520 is reported.
This is still not working
For those still suffering from this problem, here's the solution: https://linux.do/t/topic/373723
By the way, I’ve switched to Cherry Studio—it supports WebDAV flawlessly.
For those still suffering from this problem, here's the solution: https://linux.do/t/topic/373723
By the way, I’ve switched to Cherry Studio—it supports WebDAV flawlessly.
Thanks for sharing, this is wonderful. I'm also evaluating Cherry Studio. One more option is LobeChat, fassion UI with web browsing plugin built in. But only defect is the agent/mask lack of conversational prompt ability.
use upstash
The TLDR for the fix: Add Environment Variable
|WHITE_WEBDAV_ENDPOINT|https://your.webdav.server/|
Restart your server, and use that webdav endpoint. Simple.