ChatGPTNextWeb / ChatGPT-Next-Web

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

[Bug] Self-Deploied WEBDAV service can't be used to backup #5066

Open Dandi007 opened 1 month ago

Dandi007 commented 1 month ago

📦 Deployment Method

Docker

📌 Version

v2.12.4

💻 Operating System

Ubuntu

📌 System Version

22.04

🌐 Browser

Chrome

📌 Browser Version

Google Chrome 126.0.6478.126

🐛 Bug Description

I have deploied my webdav service, and can access it with curl

➜ ~ curl -u USERNAME:PASSWD http://MY_HOSTNAME:3971/

got html output:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
 <head>
  <title>Index of /</title>
 </head>
 <body>
<h1>Index of /</h1>
<ul><li><a href="a.txt"> a.txt</a></li>
<li><a href="testfile.txt"> testfile.txt</a></li>
</ul>
</body></html>

but In my nextchat's config, I click "检查可用性” (check available) it sends http req

https://MY_CHAT_HOST/api/webdav/chatgpt-next-web?endpoint=http://MY_ADV_HOST:3971

got 400 bad request

when I click sync it sends http req https://MY_CHAT_HOST/api/webdav/chatgpt-next-web/backup.json?endpoint=http://MY_ADV_HOST:3971 got resp 404

I have already insert my endpoint to white list using docker-compose

  chatgpt:
    image: yidadaa/chatgpt-next-web:using
    container_name: chatgpt
    environment:
      - WHITE_WEBDEV_ENDPOINTS=http://MY_HOST:3971
    restart: always

📷 Recurrence Steps

No response

🚦 Expected Behavior

No response

📝 Additional Information

No response

evlic commented 1 month ago

i got same issue, but im quite

bing88868 commented 1 month ago

是的,无法通过WEBDAV备份,希望修复。

Issues-translate-bot commented 1 month ago

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


Yes, backup via WEBDAV is not possible, hope that is fixed.

Muione commented 3 weeks ago

我也遇到了相同的问题,希望修复一下

Issues-translate-bot commented 3 weeks ago

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


I also encountered the same problem and hope it can be fixed