lobehub / chat-plugin-realtime-weather

🧩 / 🌈 RealtimeWeather - This plugin provides practical weather information by obtaining real-time weather data and can automatically update based on the user's location.
https://realtime-weather.chat-plugin.lobehub.com
MIT License
15 stars 6 forks source link

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

Open songtanjichuan opened 1 month ago

songtanjichuan commented 1 month ago

💻 系统环境

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

lobehubbot commented 1 month ago

👀 @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 commented 1 month ago

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

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

lobehubbot commented 1 month ago

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.

1g0rrr commented 1 month ago

I have a similar problem even with chinese city name:

image