littlecodersh / littlecodersh/ItChat
发送信息总是1204错误
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 26.5k
- Forks
- 5.6k
- PR merge metrics
- No merged PRs in 30d
Description
在提交前,请确保您已经检查了以下内容!
请使用itchat.run(debug=True)运行,并将输出粘贴在下面:
import itchat
itchat.auto_login(hotReload=True)
# 查找自己名字,给自己发微信
users = itchat.get_friends(update=True)[0]
username = users['UserName']
itchat.send(str(quote.last_price), toUserName=username)
Out[3]: <ItchatReturnValue: {'BaseResponse': {'Ret': 1204, 'ErrMsg': '', 'RawMsg': ''}, 'MsgID': '', 'LocalID': ''}>
itchat.send(str(quote.last_price), toUserName=username)
Out[4]: <ItchatReturnValue: {'BaseResponse': {'Ret': 1204, 'ErrMsg': '', 'RawMsg': ''}, 'MsgID': '', 'LocalID': ''}>
itchat.send(str(quote.last_price), toUserName=username)
Out[5]: <ItchatReturnValue: {'BaseResponse': {'Ret': 1204, 'ErrMsg': '', 'RawMsg': ''}, 'MsgID': '', 'LocalID': ''}>
您的itchat版本为:[1.3.10]。(可通过python -c "import itchat;print(itchat.__version__)"获取)
其他的内容或者问题更详细的描述都可以添加在下面:
[您的内容]
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the report with Python 3, itchat 1.3.10, itchat.auto_login(hotReload=True), and the repeated itchat.send(..., toUserName=username) calls. Trace the returned BaseResponse with Ret 1204 and determine the documented or code-supported cause; done means identifying a reproducible resolution or documenting that no actionable fix is available.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100