Comments (1)
It seems that the request body is malformed. The request body is like below:
{
"messages": [
{
"type": "image",
"originalContentUrl":"/home/260im/line/downloaded/8176050397203.jpg",
"previewImageUrl":"/home/260im/line/downloaded/8176050397203.jpg"
}
],
"replyToken":"db9227714g3ercdf402ca1cbe24f1b702065"
}
originalContentUrl
and previewImageUrl
should be valid HTTPS URL, not file path.
References:
- https://developers.line.me/en/docs/messaging-api/reference/#image-message
- https://github.com/line/line-bot-sdk-nodejs/blob/master/examples/kitchensink/index.js#L285-L286
from line-bot-sdk-nodejs.
Related Issues (20)
- Quote Message HOT 3
- Start to implement code generation based on LINE OpenAPI specification HOT 2
- Bump up minor version automatically or semi-automatically HOT 1
- Installing @line/bot-sdk via npm throws an error that says "new line.messagingApi is undefined". HOT 6
- Load Testing Support: Customizable API Endpoints HOT 3
- Deploy docs by github actions
- Use fetch() function instead of axios HOT 4
- Support line login HOT 4
- [BUG] Broken types for webhook.Event in v8 HOT 2
- [BUG]@line/bot-sdk-8.0.1's MessagingApiClient.pushMessage() sends wrong 'Content-Type': 'application/x-www-form-urlencoded', so the pushMessage() throws HTTPError: Request failed with status code 415 HOT 1
- [BUG] VerifyIdToken optional property HOT 2
- [Refactor] Improve Error Handling Consistency and Accessibility in TypeScript Error Classes HOT 13
- Added "ClipboardAction" type to types of actions HOT 3
- [BUG] TypeScript compilation error for generated api client
- Drop node:querystring dependency
- Drop body-parser dependency
- Add support for both ES modules and Common JS HOT 2
- Switch to vitepress
- [Question] : Why there are Unknown typings ? HOT 3
- [BUG] setup webhook following code in example doesn't work anymore HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from line-bot-sdk-nodejs.