Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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] 部分图片无法在通过域名访问时加载 #2728

Closed
5 of 17 tasks
Corlius opened this issue May 30, 2024 · 7 comments
Closed
5 of 17 tasks

[Bug] 部分图片无法在通过域名访问时加载 #2728

Corlius opened this issue May 30, 2024 · 7 comments
Labels
🐛 Bug Something isn't working | 缺陷

Comments

@Corlius
Copy link

Corlius commented May 30, 2024

📦 部署环境

  • Official
  • Official Preview
  • Vercel / Zeabur / Sealos
  • Docker
  • Other

📌 软件版本

v0.162.11

💻 系统环境

  • Windows
  • macOS
  • Ubuntu
  • Other Linux
  • iOS
  • Android
  • Other

🌐 浏览器

  • Chrome
  • Edge
  • Safari
  • Firefox
  • Other

🐛 问题描述

在通过 Docker 部署 LobeChat 后,使用域名访问时,部分图片无法加载,FluentEmoji 都变成系统默认的 Emoji。然而,通过 IP 地址访问时,这些图片可以正常加载。

📷 复现步骤

  1. 通过 Docker 部署 LobeChat。
  2. 使用域名访问部署好的 LobeChat。
  3. 发现部分图片无法加载,FluentEmoji 变成系统默认的 Emoji。
  4. 使用 IP 地址访问部署好的 LobeChat。
  5. 这些图片可以正常加载,FluentEmoji 显示正常。

🚦 期望结果

所有图片和 FluentEmoji 应该在使用域名和 IP 地址访问时都能正常加载。

📝 补充信息

使用开发者工具分析发现:

  • 请求网址: https://registry.npmmirror.com/@lobehub/assets-logo/1.2.0/files/assets/logo-3d.webp
  • 请求方法: GET
  • 状态代码: 403 Forbidden (来自 service worker)
  • 引荐来源网址政策: strict-origin-when-cross-origin
@Corlius Corlius added the 🐛 Bug Something isn't working | 缺陷 label May 30, 2024
@github-project-automation github-project-automation bot moved this to Roadmap - Chat 1.x in Lobe Chat Routine May 30, 2024
@lobehubbot
Copy link
Member

👀 @Corlius

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。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

@arvinxx
Copy link
Contributor

arvinxx commented May 30, 2024

你的域名可能被 npmmirror 黑名单了。是否是 .top 后缀的域名?

@lobehubbot
Copy link
Member

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


Your domain may be blacklisted by npmmirror. Is it a domain name with a .top suffix?

@Corlius
Copy link
Author

Corlius commented May 30, 2024 via email

@arvinxx
Copy link
Contributor

arvinxx commented May 30, 2024

@Corlius 目前应该没有办法,只有换成不是 .top 的域名才行。

@lobehubbot
Copy link
Member

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


@Corlius There should be no solution at present except changing to a domain name other than top.

@Corlius
Copy link
Author

Corlius commented May 30, 2024 via email

@lobehub lobehub locked and limited conversation to collaborators May 30, 2024
@arvinxx arvinxx converted this issue into discussion #2730 May 30, 2024
@github-project-automation github-project-automation bot moved this from Roadmap - Chat 1.x to Done in Lobe Chat Routine May 30, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
🐛 Bug Something isn't working | 缺陷
Projects
Archived in project
Development

No branches or pull requests

3 participants