littlecodersh / littlecodersh/ItChat

发送信息总是1204错误

Open
#910 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.