fbchat-dev/fbchat

Error when getting jsmods_require on sent message

Open

#447 创建于 2019年7月11日

在 GitHub 查看
 (10 评论) (0 反应) (0 负责人)Python (406 fork)github user discovery
bughelp wanted

仓库指标

Star
 (1,210 star)
PR 合并指标
 (PR 指标待抓取)

描述

Description of the problem

When a message is sent, a very long error can be seen in the console. No traceback is seen. The message is delivered.

Code to reproduce

#!/usr/bin/env python3
import fbchat
from fbchat import models

cookie_file = 'cookies.json'
with open(cookie_file, 'r') as fd:
    cookies = json.load(fd)

client = fbchat.Client(email, password, session_cookies=cookies)

with open(cookie_file, 'w') as fd:
    cookies = client.getSession()
    json.dump(cookies, fd)

client.send(models.Message(text="test"), thread_id=owner) # owner = my UID

Traceback

The error message is very long, to save you scrolling I've pastebinned it: https://pastebin.com/g5y46quv

Environment information

  • Python version: Python 3.7.3
  • fbchat version: 1.7.2

If you have done any research, include that. Make sure to redact all personal information.

贡献者指南