NextChat icon indicating copy to clipboard operation
NextChat copied to clipboard

[Bug] WebDAV Sync Failed

Open chesha1 opened this issue 1 year ago • 19 comments

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

chesha1 avatar Jun 04 '24 14:06 chesha1

我也是

loganoxo avatar Jun 05 '24 19:06 loganoxo

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


Me too

Issues-translate-bot avatar Jun 05 '24 19:06 Issues-translate-bot

我也是,尝试了多个webdav都无法正常同步。 还请作者大神帮忙看看

kicool-x avatar Jun 11 '24 06:06 kicool-x

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

Issues-translate-bot avatar Jun 11 '24 06:06 Issues-translate-bot

我用坚果云也是这样

122cygf avatar Jun 13 '24 17:06 122cygf

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


Me too

Issues-translate-bot avatar Jun 13 '24 17:06 Issues-translate-bot

Me too

wyx1818 avatar Jun 14 '24 03:06 wyx1818

metoo

trucdp avatar Jun 14 '24 03:06 trucdp

me too,我也是,多个webdav无法同步

cmx-ops avatar Jun 14 '24 06:06 cmx-ops

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


me too, me too, multiple webdavs cannot be synchronized

Issues-translate-bot avatar Jun 14 '24 06:06 Issues-translate-bot

i tried 123pan,jianguoyun webdav,no one can sync data

cmx-ops avatar Jun 14 '24 06:06 cmx-ops

用main分支自己部署的可以备份成功。。。

junxian-li-hpc avatar Jun 15 '24 08:06 junxian-li-hpc

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. . .

Issues-translate-bot avatar Jun 15 '24 08:06 Issues-translate-bot

用main分支自己部署的可以备份成功。。。

自己部署的网页 跟他的示例网页 有什么区别吗

bygsn avatar Jun 28 '24 06:06 bygsn

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?

Issues-translate-bot avatar Jun 28 '24 06:06 Issues-translate-bot

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…
];

TonyGeez avatar Jul 08 '24 00:07 TonyGeez

我解决了这个问题,可以试试这个版本,还支持自动同步数据和同步删除消息与会话操作。 #5236

ahzmr avatar Aug 15 '24 14:08 ahzmr

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

Issues-translate-bot avatar Aug 15 '24 14:08 Issues-translate-bot

is there anyone to follow up this issue on main branch?

eric-easyhealth avatar Sep 19 '24 11:09 eric-easyhealth

最新的main分支,在vercel部署,还是不能通过webdav同步,报错520

feng569208766 avatar Oct 30 '24 16:10 feng569208766

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.

Issues-translate-bot avatar Oct 30 '24 16:10 Issues-translate-bot

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.

Issues-translate-bot avatar Oct 30 '24 16:10 Issues-translate-bot

This is still not working

devonuto avatar Nov 07 '24 00:11 devonuto

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.

chesha1 avatar Feb 08 '25 18:02 chesha1

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.

siben168 avatar Feb 10 '25 01:02 siben168

use upstash

14790897 avatar Feb 21 '25 05:02 14790897

The TLDR for the fix: Add Environment Variable

|WHITE_WEBDAV_ENDPOINT|https://your.webdav.server/|

Restart your server, and use that webdav endpoint. Simple.

devonuto avatar Feb 21 '25 05:02 devonuto