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

ERR Message ready() exception: Error: Contact.load(): id not found #123

Closed
hailiang-wang opened this issue Dec 8, 2016 · 3 comments
Closed

Comments

@hailiang-wang
Copy link
Member

hailiang-wang commented Dec 8, 2016

Description

Get the latest codes, eb8d79f.

cd wechaty
npm install
npm start

Expected behavior

No error messages.

Actual behavior

image

Log trace

But the app is launched and service well. The incoming message is printed, not sure if the message has further impact.

Environment

OS: macOS Sierra
NodeJS: 6.9.1

@hailiang-wang
Copy link
Member Author

Id is undefined at this point

ERR Message ready() exception: Error: Contact.load(): id not found
    at Function.load (/Users/hain/ai/wechaty/src/contact.ts:337:13)
    at Message.<anonymous> (/Users/hain/ai/wechaty/src/message.ts:415:29)
    at next (native)
    at /Users/hain/ai/wechaty/dist/src/message.js:7:65
    at __awaiter (/Users/hain/ai/wechaty/dist/src/message.js:3:12)
    at Message.ready (/Users/hain/ai/wechaty/dist/src/message.js:195:16)
    at PuppetWeb.<anonymous> (/Users/hain/ai/wechaty/src/puppet-web/event.ts:295:13)
    at next (native)
    at /Users/hain/ai/wechaty/dist/src/puppet-web/event.js:7:65

But I can not reproduce this error.

@huan
Copy link
Member

huan commented Dec 8, 2016

I had seen this bug now and then. will check it later.

@huan
Copy link
Member

huan commented Dec 8, 2016

@Samurais this exception is caused by calling this.say() before bot login. fixed.

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

2 participants