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] office文档预览报错:An error occurred #6670

Open
taocwang opened this issue Mar 3, 2025 · 4 comments
Open

[Bug] office文档预览报错:An error occurred #6670

taocwang opened this issue Mar 3, 2025 · 4 comments
Labels
🐛 Bug Something isn't working | 缺陷

Comments

@taocwang
Copy link

taocwang commented Mar 3, 2025

📦 部署环境

Docker

📦 部署模式

服务端模式(lobe-chat-database 镜像)

📌 软件版本

v1.68.1

💻 系统环境

Ubuntu

🌐 浏览器

Chrome

🐛 问题描述

我在使用office文档预览报错,页面显示:
An error occurred
We're sorry, but for some reason we can't open this for you.
Learn more
但是我的pdf预览正常,office 文档也能正常下载。

📷 复现步骤

No response

🚦 期望结果

No response

📝 补充信息

No response

@taocwang taocwang added the 🐛 Bug Something isn't working | 缺陷 label Mar 3, 2025
@github-project-automation github-project-automation bot moved this to Roadmap - Chat 1.x in Lobe Chat Routine Mar 3, 2025
@lobehubbot
Copy link
Member

👀 @taocwang

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

Copy link

dosubot bot commented Mar 3, 2025

Hello, @taocwang! I'm here to assist you with any bugs, questions, or contributions you have. Let's work together to resolve the issue you're experiencing.

I found a similar unsolved discussion regarding document preview issues: Doc文档无法预览, which was last updated on January 4, 2025 [1].

For the issue you're experiencing with office document previews, it's important to note that the FileViewer component uses the @cyntler/react-doc-viewer library for rendering office documents. This library might have compatibility issues or require specific configurations that are not documented in the repository [2].

Since your PDF previews are working fine, the issue might be specific to the handling of office documents. You might want to check if there are any specific dependencies or configurations required for office document previews in your Docker setup, although I couldn't find specific information on this [2].

Additionally, ensure that your Chrome browser and Ubuntu system are up to date, as there might be compatibility issues with specific versions, although no known issues were found in the repository [2].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@taocwang
Copy link
Author

taocwang commented Mar 4, 2025

至今没有找到解决办法,pdf、图片是可以预览的;word、excel 、PPT可以下载,但无法预览。

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


No solution has been found so far, pdf and pictures can be previewed; word, excel, and PPT can be downloaded, but cannot be previewed.

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
Status: Roadmap - Chat 1.x
Development

No branches or pull requests

2 participants