NextChat icon indicating copy to clipboard operation
NextChat copied to clipboard

[Bug] 数据同步设置里面webdav不能正常使用

Open FINatiend opened this issue 10 months ago • 15 comments

Bug Description

如题,使用坚果云webDAV服务不能正常使用。

Steps to Reproduce

  1. 点击检查可用性按钮时,会显示不可用,并且返回check 520,post链接里会自动加上ChatGPTNextWeb字段。
iShot_2024-04-17_11 05 24
  1. 点击同步按钮,会出现下面的错误Unexpected token 'e', "error code: 520" is not valid JSON

ztfk9wp2

  1. 下图是坚果云webdav服务,是正常开启的

fvye49wd

  1. 在另外一款文献管理软件zotero中,坚果云webdav也是也可以正常使用的,该链接结尾是以/zotero/结尾的

image

5.坚果云的文件也创建了 image

Expected Behavior

坚果云webdav服务正常使用

Screenshots

No response

Deployment Method

  • [ ] Docker
  • [ ] Vercel
  • [ ] Server

Desktop OS

mac os 13

Desktop Browser

chrome

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

FINatiend avatar Apr 17 '24 04:04 FINatiend

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


Title: [Bug] webdav cannot be used normally in data synchronization settings

Issues-translate-bot avatar Apr 17 '24 04:04 Issues-translate-bot

我有同样的问题

zhibisora avatar Apr 17 '24 21:04 zhibisora

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


I have the same problem

Issues-translate-bot avatar Apr 17 '24 21:04 Issues-translate-bot

请问使用的是最新版本么?最新版本中已经将/api/cors接口迁移到了/api/webdav,并增加了基于安全方面考量的一些设计

Dean-YZG avatar Apr 19 '24 06:04 Dean-YZG

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


Are you using the latest version? In the latest version, the /api/cors interface has been migrated to /api/webdav, and some designs based on security considerations have been added.

Issues-translate-bot avatar Apr 19 '24 06:04 Issues-translate-bot

请问使用的是最新版本么?最新版本中已经将/api/cors接口迁移到了/api/webdav,并增加了基于安全方面考量的一些设计

请问新版本docker镜像什么时间会发布

tk-programmer avatar Apr 20 '24 12:04 tk-programmer

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


Are you using the latest version? In the latest version, the /api/cors interface has been migrated to /api/webdav, and some designs based on security considerations have been added.

When will the new version of the docker image be released?

Issues-translate-bot avatar Apr 20 '24 12:04 Issues-translate-bot

请问使用的是最新版本么?最新版本中已经将/api/cors接口迁移到了/api/webdav,并增加了基于安全方面考量的一些设计

@Dean-YZG 是的,最新版本。 我部署了 PR #4525 之后遇到了 Json 解析错误的 BUG。

Logs
page-df770995f097e59f.js:1 [Config] got config from build time {version: 'v2.11.3', commitDate: '1713250762000', commitHash: '9b2cb1e1c3252298c8a94fb195af683ac7aea5e9', buildMode: 'standalone', isApp: false}
serviceWorkerRegister.js:4 ServiceWorker registration successful with scope:  https://exmaple.com/
670.3f8d4b1ccea09673.js:1 [Update] local version  v2.11.3
670.3f8d4b1ccea09673.js:1 [Update] remote version  v2.11.3
page-df770995f097e59f.js:1 [Config] got config from server {needCode: true, hideUserApiKey: false, disableGPT4: false, hideBalanceQuery: true, disableFastLink: false, …}
page-df770995f097e59f.js:1 
        
        
       GET https://example.com/api/webdav/chatgpt-next-web/backup.json?endpoint=https://dav.jianguoyun.com/dav/ 520
get @ page-df770995f097e59f.js:1
sync @ page-df770995f097e59f.js:1
onClick @ 670.3f8d4b1ccea09673.js:1
l5 @ bce60fc1-e55b90606913faf1.js:9
ar @ bce60fc1-e55b90606913faf1.js:9
(anonymous) @ bce60fc1-e55b90606913faf1.js:9
u2 @ bce60fc1-e55b90606913faf1.js:9
u3 @ bce60fc1-e55b90606913faf1.js:9
(anonymous) @ bce60fc1-e55b90606913faf1.js:9
oS @ bce60fc1-e55b90606913faf1.js:9
ir @ bce60fc1-e55b90606913faf1.js:9
u9 @ bce60fc1-e55b90606913faf1.js:9
i6 @ bce60fc1-e55b90606913faf1.js:9
i4 @ bce60fc1-e55b90606913faf1.js:9
page-df770995f097e59f.js:1 [WebDav] get key =  [email protected] 520 
page-df770995f097e59f.js:1 [Sync] failed to get remote state SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
    at JSON.parse (<anonymous>)
    at Object.sync (page-df770995f097e59f.js:1:247469)
    at async onClick (670.3f8d4b1ccea09673.js:1:16330)
7698-bb5d18468650f39a.js:1 [Sync] SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
    at JSON.parse (<anonymous>)
    at Object.sync (page-df770995f097e59f.js:1:247469)
    at async onClick (670.3f8d4b1ccea09673.js:1:16330)
window.console.error @ 7698-bb5d18468650f39a.js:1
onClick @ 670.3f8d4b1ccea09673.js:1
await in onClick (async)
l5 @ bce60fc1-e55b90606913faf1.js:9
ar @ bce60fc1-e55b90606913faf1.js:9
(anonymous) @ bce60fc1-e55b90606913faf1.js:9
u2 @ bce60fc1-e55b90606913faf1.js:9
u3 @ bce60fc1-e55b90606913faf1.js:9
(anonymous) @ bce60fc1-e55b90606913faf1.js:9
oS @ bce60fc1-e55b90606913faf1.js:9
ir @ bce60fc1-e55b90606913faf1.js:9
u9 @ bce60fc1-e55b90606913faf1.js:9
i6 @ bce60fc1-e55b90606913faf1.js:9
i4 @ bce60fc1-e55b90606913faf1.js:9

hexsix avatar Apr 23 '24 02:04 hexsix

When will the new version of the docker image be released?

Dunky-Z avatar Apr 25 '24 12:04 Dunky-Z

同样的问题

ipez avatar May 08 '24 16:05 ipez

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


same question

Issues-translate-bot avatar May 08 '24 16:05 Issues-translate-bot

same question

led-ury avatar May 16 '24 01:05 led-ury

一样的问题

ldw1216 avatar May 21 '24 00:05 ldw1216

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


Same problem

Issues-translate-bot avatar May 21 '24 00:05 Issues-translate-bot

same question

GaoChrishao avatar May 21 '24 09:05 GaoChrishao

代理地址为空,WebDAV 地址为https://dav.jianguoyun.com/dav/时,同步可用,但检查可用性报错。 屏幕截图_20240523_192527

daiaji avatar May 23 '24 11:05 daiaji

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


When the proxy address is empty and the WebDAV address is 'https://dav.jianguoyun.com/dav/', synchronization is available, but an error is reported when checking availability. Screenshot_20240523_192527

Issues-translate-bot avatar May 23 '24 11:05 Issues-translate-bot

same question,anyone pepole solved this problem?

TheToiletsWar avatar May 23 '24 13:05 TheToiletsWar

这么大的 BUG,作者为什么不回复呢?

Sligcm avatar Jun 03 '24 08:06 Sligcm

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


Why doesn't the author reply to such a big BUG?

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

@Dean-YZG

请问使用的是最新版本么?最新版本中已经将/api/cors接口迁移到了/api/webdav,并增加了基于安全方面考量的一些设计

能帮忙看下么,现在还是不可用状态

wyx1818 avatar Jun 14 '24 03:06 wyx1818

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


@Dean-YZG

Are you using the latest version? In the latest version, the /api/cors interface has been migrated to /api/webdav, and some designs based on security considerations have been added.

Can you help me take a look? It's still unavailable now.

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

代理地址为空,WebDAV 地址为https://dav.jianguoyun.com/dav/时,同步可用,但检查可用性报错。 屏幕截图_20240523_192527

你用的哪个版本的

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

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


When the proxy address is empty and the WebDAV address is https://dav.jianguoyun.com/dav/, synchronization is available, but an error is reported when checking availability. ![Screenshot_20240523_192527](https://private-user-images.githubusercontent.com/25875791/333163309-dac9acd8-092a-49e1-a35b-4566047248ca.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6 IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTgzNDcwOTMsIm5iZiI6MTcxODM0Njc5MywicGF0a CI6Ii8yNTg3NTc5MS8zMzMxNjMzMDktZGFjOWFjZDgtMDkyYS00OWUxLWEzNWItNDU2NjA0NzI0OGNhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPU FLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE0VDA2MzMxM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU 2lnbmF0dXJlPTIxYTg0ZWVhZmJmZjIzOTNmYmM0MTgzOWVlMzcwYTZjYzJiODY0NmU1 NzA3N2NlYzljOTIyZmY4NzI2ZGVmNzEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFj dG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.j5WKDNjX7ud_5eE72OVAWLel-K4tsEEFvYnREPwGanU)

Which version are you using?

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