-
Notifications
You must be signed in to change notification settings - Fork 60.6k
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?] [Help request] v2.11.3无法使用本地的webdav服务 #4335
Comments
Please follow the issue template to update title and description of your issue. |
Title: [Bug?] [Help request] v2.11.3 cannot use the local webdav service |
@Wedjat98 could you share the console log from your browser when sync with webdav? |
Sure! Here is it. [Sync] failed to get remote state TypeError: URL constructor: /api/cors//api/webdav/chatgpt-next-web/backup.json/ is not a valid URL.
NextJS 33
[page-606a277117982b1d.js:1:232420](http://192.168.0.244:3000/_next/static/chunks/app/page-606a277117982b1d.js)
[Sync] TypeError: URL constructor: /api/cors//api/webdav/chatgpt-next-web/backup.json/ is not a valid URL.
NextJS 33
[7698-bb5d18468650f39a.js:1:3423](http://192.168.0.244:3000/_next/static/chunks/7698-bb5d18468650f39a.js)
NextJS 31 |
I have the save issue |
working on it, it should cause by a recent security update |
我在使用坚果云webdav,点击“同步”显示成功了,但是去网盘实际看文件没有更新 |
I am using Nut Cloud webdav. When I click "Synchronize", it shows success, but when I go to the network disk to actually view the file, it is not updated. |
我在使用坚果云webdav,点击“同步”显示成功了,但是去网盘实际看文件没有更新 |
I am using Nut Cloud webdav. When I click "Synchronize", it shows success, but when I go to the network disk to actually view the file, it is not updated. |
同样也遇到了这个问题 |
Also encountered this problem |
try this #4353 |
@H0llyW00dzZ When I clicked the XHRMKCOL
[http://192.168.0.244:3000/api/upstash/chatgpt-next-web?endpoint=http://192.168.0.244:3900](http://192.168.0.244:3000/api/upstash/chatgpt-next-web?endpoint=http%3A%2F%2F192.168.0.244%3A3900)
[HTTP/1.1 404 Not Found 30ms]
[WebDav] check 404 Not Found [page-1b933c022a7b0acd.js:1:239001](http://192.168.0.244:3000/_next/static/chunks/app/page-1b933c022a7b0acd.js) btw the sysc status icon seems like turned
XHRGET
[http://192.168.0.244:3000/api/upstash/chatgpt-next-web/backup.json?endpoint=http://192.168.0.244:3900](http://192.168.0.244:3000/api/upstash/chatgpt-next-web/backup.json?endpoint=http%3A%2F%2F192.168.0.244%3A3900)
[HTTP/1.1 403 Forbidden 31ms]
[WebDav] get key = admin 403 Forbidden [page-1b933c022a7b0acd.js:1:239257](http://192.168.0.244:3000/_next/static/chunks/app/page-1b933c022a7b0acd.js)
[Sync] failed to get remote state TypeError: t is undefined
NextJS 34
[page-1b933c022a7b0acd.js:1:232439](http://192.168.0.244:3000/_next/static/chunks/app/page-1b933c022a7b0acd.js) Hope those log is useful to your work. Thx again. |
I have rolled back to the v2.11.2. [CORS] target = /api/cors/http/192.168.0.244:3900/chatgpt-next-web [page-8ad94c71eb7e5987.js:1:236651](http://192.168.0.244:3000/_next/static/chunks/app/page-8ad94c71eb7e5987.js)
XHRPOST
http://192.168.0.244:3000/api/cors/http/192.168.0.244:3900/chatgpt-next-web
[HTTP/1.1 405 Method Not Allowed 56ms] I have check this request seems like to create a directory(?) by MKCOL method. Normally MKCOL is acceptable. When I click the [WebDav] check 405 Method Not Allowed [page-8ad94c71eb7e5987.js:1:235317](http://192.168.0.244:3000/_next/static/chunks/app/page-8ad94c71eb7e5987.js)
[CORS] target = /api/cors/http/192.168.0.244:3900/chatgpt-next-web/backup.json [page-8ad94c71eb7e5987.js:1:236651](http://192.168.0.244:3000/_next/static/chunks/app/page-8ad94c71eb7e5987.js)
XHRPOST
http://192.168.0.244:3000/api/cors/http/192.168.0.244:3900/chatgpt-next-web/backup.json
[HTTP/1.1 404 Not Found 50ms]
[WebDav] get key = admin 404 Not Found [page-8ad94c71eb7e5987.js:1:235584](http://192.168.0.244:3000/_next/static/chunks/app/page-8ad94c71eb7e5987.js)
[Sync] failed to get remote state SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
NextJS 32
[page-8ad94c71eb7e5987.js:1:228903](http://192.168.0.244:3000/_next/static/chunks/app/page-8ad94c71eb7e5987.js)
[CORS] target = /api/cors/http/192.168.0.244:3900/chatgpt-next-web/backup.json [page-8ad94c71eb7e5987.js:1:236651](http://192.168.0.244:3000/_next/static/chunks/app/page-8ad94c71eb7e5987.js)
[WebDav] set key = admin 201 Created then Sync is successful and file |
It seems that the issue is because the
For the old version, you may need to temporarily block internal IP addresses because the old version might still be vulnerable to Server-Side Request Forgery (SSRF) when hosted on cloud platforms like AWS due to lack of proper configuration or misconfiguration. |
Also, I have already found and identified a better method for handling this issue. However, I plan to start implementing it next month after Eid Mubarak, as I currently don't have much free time available. |
我也遇到了这个问题 |
I also encountered this problem |
同样问题,今天更新了最新的代码试了infini-cloud.net的webdav网盘,显示同步成功,但是网盘里空空如也 |
I have the same problem. I updated the latest code today and tried the webdav network disk of infini-cloud.net. It shows that the synchronization is successful, but the network disk is empty. |
it has been fixed in this pr #4525 |
@Dean-YZG json parse error in new pr. Logs
|
还是同步失败 |
到底应该怎样做才能同步成功?现在2.12.3版本还是不能同步 |
What should be done to achieve successful synchronization? Now version 2.12.3 still cannot be synchronized. |
Bug Description
No PROXY_URL confirmed
我有一个极其简易的webdav服务如下:
我在v2.11.2 是可以正常使用这个服务来同步对话历史到不同的设备,但是升级至v2.11.3我无法使用了。请问我应该怎么做?或者我应该从哪里获取到同步失败的相关log?
Steps to Reproduce
update to 2.11.3 and Sync the chat histories then show dialog
Sync Fail
Expected Behavior
Sync Success
Screenshots
No response
Deployment Method
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
The text was updated successfully, but these errors were encountered: