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

getMaterial return a buffer but a json #102

Open
nnsay opened this issue Jan 11, 2016 · 0 comments
Open

getMaterial return a buffer but a json #102

nnsay opened this issue Jan 11, 2016 · 0 comments

Comments

@nnsay
Copy link

nnsay commented Jan 11, 2016

Q: I get a buffer result but a json when I use the getMaterial api.

check the file: lib/api_material.js
at the row 253, u just give a opts before request and do not postJSON the opts. this results in the weixin return a buffer result in callback.

u should postJSON opts or set dataType when post with urllib.

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

1 participant