ChatGPTNextWeb / ChatGPT-Next-Web

A cross-platform ChatGPT/Gemini UI (Web / PWA / Linux / Win / MacOS). 一键拥有你自己的跨平台 ChatGPT/Gemini 应用。
https://app.nextchat.dev/
MIT License
76.08k stars 58.99k forks source link

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

Open FINatiend opened 6 months ago

FINatiend commented 6 months ago

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

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

Issues-translate-bot commented 6 months ago

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


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

zhibisora commented 6 months ago

我有同样的问题

Issues-translate-bot commented 6 months ago

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


I have the same problem

Dean-YZG commented 6 months ago

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

Issues-translate-bot commented 6 months ago

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.

tk-programmer commented 6 months ago

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

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

Issues-translate-bot commented 6 months ago

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?

hexsix commented 6 months ago

请问使用的是最新版本么?最新版本中已经将/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 = account_name@jianguoyun.com 520 page-df770995f097e59f.js:1 [Sync] failed to get remote state SyntaxError: Unexpected token '<', ") at Object.sync (page-df770995f097e59f.js:1:247469) at async onClick (670.3f8d4b1ccea09673.js:1:16330) 7698-bb5d18468650f39a.js:1 [Sync] SyntaxError: Unexpected token '<', ") 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 ```
Dunky-Z commented 6 months ago

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

ipez commented 5 months ago

同样的问题

Issues-translate-bot commented 5 months ago

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


same question

led-ury commented 5 months ago

same question

ldw1216 commented 5 months ago

一样的问题

Issues-translate-bot commented 5 months ago

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


Same problem

GaoChrishao commented 5 months ago

same question

daiaji commented 5 months ago

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

Issues-translate-bot commented 5 months ago

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

TheToiletsWar commented 5 months ago

same question,anyone pepole solved this problem?

Sligcm commented 4 months ago

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

Issues-translate-bot commented 4 months ago

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


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

wyx1818 commented 4 months ago

@Dean-YZG

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

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

Issues-translate-bot commented 4 months ago

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.

cmx-ops commented 4 months ago

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

你用的哪个版本的

Issues-translate-bot commented 4 months ago

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?