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] 实时天气插件报错 #9

Open
songtanjichuan opened this issue May 16, 2024 · 4 comments
Open

[Bug] 实时天气插件报错 #9

songtanjichuan opened this issue May 16, 2024 · 4 comments
Labels
🐛 Bug Something isn't working | 缺陷

Comments

@songtanjichuan
Copy link

💻 系统环境

Windows

📦 部署环境

Docker

🌐 浏览器

Chrome

🐛 问题描述

两个问题:
1,当请求 接口 /api/plugin/gateway时,如果payload 中参数city 是英文的 Beijing 会报错405,
2,当我在次询问天气,加上提示次中文,会发送两次请求 /api/plugin/gateway。
image
image

🚦 期望结果

/api/plugin/gateway 接口无论是中文还是英文都应该返回success。并返回正确结果

📷 复现步骤

1.安装 实时天气 插件;
2.随便聊聊发送消息 北京天气 如上图

📝 补充信息

No response

@songtanjichuan songtanjichuan added the 🐛 Bug Something isn't working | 缺陷 label May 16, 2024
@lobehubbot
Copy link
Member

👀 @songtanjichuan

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 16, 2024

/api/plugin/gateway 接口无论是中文还是英文都应该返回success。并返回正确结果

现在的实时天气是只做了中文的,后续我优化下好了。

@lobehubbot
Copy link
Member

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


The /api/plugin/gateway interface should return success whether it is Chinese or English. and return the correct result

The current real-time weather is only in Chinese, I will optimize it later.

@arvinxx arvinxx transferred this issue from lobehub/lobe-chat May 16, 2024
@1g0rrr
Copy link

1g0rrr commented May 23, 2024

I have a similar problem even with chinese city name:
image

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

4 participants