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

client.im.image.create 报错 source.on is not a function,原因是 axios 版本太低有 bug #117

Closed
k8w opened this issue Jan 5, 2025 · 1 comment

Comments

@k8w
Copy link

k8w commented Jan 5, 2025

重现方式:

const op = await client.im.image.create({
    data: {
      image_type: 'message',
      image: Buffer.from([1,2,3,4,5,6,7,8,9,0]),
    },
});

报错信息:

TypeError: source.on is not a function
at Function.DelayedStream.create (/Users/bytedance/Projects/byte-card/backend/node_modules/delayed-stream/lib/delayed_stream.js:33:10)
at FormData.CombinedStream.append (/Users/bytedance/Projects/byte-card/backend/node_modules/combined-stream/lib/combined_stream.js:45:37)

原因:
axios 版本太低,有 bug,见:

@mazhe-nerd
Copy link
Collaborator

Duplicate of #39

@mazhe-nerd mazhe-nerd marked this as a duplicate of #39 Jan 6, 2025
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