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] 数据同步设置里面webdav不能正常使用 #4532

Open
3 tasks
FINatiend opened this issue Apr 17, 2024 · 11 comments
Open
3 tasks

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

FINatiend opened this issue Apr 17, 2024 · 11 comments
Labels
bug Something isn't working

Comments

@FINatiend
Copy link

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 FINatiend added the bug Something isn't working label Apr 17, 2024
@Issues-translate-bot
Copy link

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
Copy link

我有同样的问题

@Issues-translate-bot
Copy link

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


I have the same problem

@Dean-YZG
Copy link
Contributor

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

@Issues-translate-bot
Copy link

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
Copy link

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

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

@Issues-translate-bot
Copy link

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
Copy link

hexsix commented Apr 23, 2024

请问使用的是最新版本么?最新版本中已经将/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 '<', "<!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

@Dunky-Z
Copy link

Dunky-Z commented Apr 25, 2024

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

@ipez
Copy link

ipez commented May 8, 2024

同样的问题

@Issues-translate-bot
Copy link

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


same question

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

8 participants