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

发送语音消息报错 #817

Open
vincezhou opened this issue Oct 24, 2024 · 0 comments
Open

发送语音消息报错 #817

vincezhou opened this issue Oct 24, 2024 · 0 comments

Comments

@vincezhou
Copy link

Traceback (most recent call last):
File "/www/server/pyporject_evn/gzh_com_venv/bin/bottle.py", line 995, in _handle
out = route.call(**args)
File "/www/server/pyporject_evn/gzh_com_venv/bin/bottle.py", line 2025, in wrapper
rv = callback(*a, **ka)
File "/www/server/pyporject_evn/gzh_com_venv/lib/python3.8/site-packages/werobot/contrib/bottle.py", line 55, in werobot_view
return robot.get_encrypted_reply(message)
File "/www/server/pyporject_evn/gzh_com_venv/lib/python3.8/site-packages/werobot/robot.py", line 616, in get_encrypted_reply
return self.crypto.encrypt_message(reply)
File "/www/server/pyporject_evn/gzh_com_venv/lib/python3.8/site-packages/werobot/crypto/init.py", line 133, in encrypt_message
encrypt = to_text(self.prp_crypto.encrypt(reply, self.app_id))
File "/www/server/pyporject_evn/gzh_com_venv/lib/python3.8/site-packages/werobot/crypto/init.py", line 53, in encrypt
struct.pack(b"I", socket.htonl(len(to_binary(text)))),
File "/www/server/pyporject_evn/gzh_com_venv/lib/python3.8/site-packages/werobot/utils.py", line 66, in to_binary
return bytes(value)
TypeError: 'str' object cannot be interpreted as an integer
Traceback (most recent call last):
File "/www/server/pyporject_evn/gzh_com_venv/bin/bottle.py", line 995, in _handle
out = route.call(**args)
File "/www/server/pyporject_evn/gzh_com_venv/bin/bottle.py", line 2025, in wrapper
rv = callback(*a, **ka)
File "/www/server/pyporject_evn/gzh_com_venv/lib/python3.8/site-packages/werobot/contrib/bottle.py", line 55, in werobot_view
return robot.get_encrypted_reply(message)
File "/www/server/pyporject_evn/gzh_com_venv/lib/python3.8/site-packages/werobot/robot.py", line 616, in get_encrypted_reply
return self.crypto.encrypt_message(reply)
File "/www/server/pyporject_evn/gzh_com_venv/lib/python3.8/site-packages/werobot/crypto/init.py", line 133, in encrypt_message
encrypt = to_text(self.prp_crypto.encrypt(reply, self.app_id))
File "/www/server/pyporject_evn/gzh_com_venv/lib/python3.8/site-packages/werobot/crypto/init.py", line 53, in encrypt
struct.pack(b"I", socket.htonl(len(to_binary(text)))),
File "/www/server/pyporject_evn/gzh_com_venv/lib/python3.8/site-packages/werobot/utils.py", line 66, in to_binary
return bytes(value)
TypeError: 'str' object cannot be interpreted as an integer


* **复现步骤**

* **其他信息**
<!-- 如对 bug 修复的建议、相关 issue 或 PR 的引用等信息 -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant