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

飞书画图无法显示 #1933

Closed
2 tasks done
mitxmu opened this issue Apr 30, 2024 · 1 comment
Closed
2 tasks done

飞书画图无法显示 #1933

mitxmu opened this issue Apr 30, 2024 · 1 comment

Comments

@mitxmu
Copy link

mitxmu commented Apr 30, 2024

前置确认

  • 我确认我运行的是最新版本的代码,并且安装了所需的依赖,在FAQS中也未找到类似问题。

⚠️ 搜索issues中是否已存在类似问题

  • 我已经搜索过issues和disscussions,没有跟我遇到的问题相关的issue

操作系统类型?

Linux

运行的python版本是?

python 3.10

使用的chatgpt-on-wechat版本是?

Latest Release

运行的channel类型是?

other

复现步骤 🕹

飞书画图无法显示

问题描述 😯

飞书画图无法显示
屏幕截图 2024-04-30 135009

终端日志 📒

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/root/chatgpt-on-wechat/channel/chat_channel.py", line 289, in _send
self.send(reply, context)
File "/root/chatgpt-on-wechat/channel/feishu/feishu_channel.py", line 70, in send
reply_content = self._upload_image_url(reply.content, access_token)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/chatgpt-on-wechat/channel/feishu/feishu_channel.py", line 144, in _upload_image_url
return upload_response.json().get("data").get("image_key")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get'

@6vision
Copy link
Collaborator

6vision commented May 23, 2024

这个应该是偶尔的错误吧,图片上传失败导致的

@6vision 6vision closed this as completed May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants