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

code example 'media-file-bot' not working #1183

Closed
nujabse opened this issue May 2, 2018 · 4 comments
Closed

code example 'media-file-bot' not working #1183

nujabse opened this issue May 2, 2018 · 4 comments

Comments

@nujabse
Copy link

nujabse commented May 2, 2018

Provide Your Network Information

China, local computer.

Run npm run doctor or wechaty run doctor(for docker user), paste output here

 #### Wechaty Doctor

  1. Wechaty version: #git[69762e1]
  2. Linux x64 version 4.14.34-1-MANJARO memory 5928/8537 MB
  3. Docker: false
  4. Node version: v9.11.1
  5. Tcp IPC TEST: PASS

Expected behavior

run media-file-bot.ts code example to automatically download received picture files.

Actual behavior

Only empty jpg files are generated without any content.

Steps to reproduce the behavior (and fixes, if any)

ts-node examples/media-file-bot.ts

Full Output Logs

PuppeteerContact<user> logined
start to readyStream()
finish readyStream() for  9109414383392334751..jpg  size:  0
RECV: Message#IMAGE<866797007780171292..jpg>
IMAGE local filename: 866797007780171292..jpg
start to readyStream()
RECV: Message#IMAGE<6883507788330090547..jpg>
IMAGE local filename: 6883507788330090547..jpg
start to readyStream()
finish readyStream() for  866797007780171292..jpg  size:  0
finish readyStream() for  6883507788330090547..jpg  size:  0
@huan
Copy link
Member

huan commented May 2, 2018

Please use v0.14 instead of master v0.15

@nujabse
Copy link
Author

nujabse commented May 3, 2018

Problem fixed, thanks!

@nujabse nujabse closed this as completed May 3, 2018
@huan
Copy link
Member

huan commented May 3, 2018

Glad to hear that, cheers!

@huan
Copy link
Member

huan commented May 11, 2018

See #1200

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