Question Details

Answered
404 when calling getMessageContent() via the Node client

I can receive incoming text chats no problem. Image, etc arrive looking like this:

{
  type: 'message',
  replyToken: '969c355424884326968b985398c0fee3',
  source: {
    userId: 'Uxyz',
    type: 'user'
  },
  timestamp: 1554173165993,
  message: {
    type: 'image',
    id: '9621010246274',
    contentProvider: {
      type: 'line'
    }
  }
}

Attempting to call the REST API:

https://developers.line.biz/en/reference/messaging-api/#get-content

https://api.line.me/v2/bot/message/{messageId}/content

for the given message id returns a 404.

Experimenting with the SDK also seems to be giving me a 404.

Is there anything else we need to do to retreive 'image' or other binary contents?

1
Profile picture
Evan Owens

Answers

1
Profile picture
Phát 1234
Posted: 3 months ago

The same issue I call https://api.line.me/v2/bot/message/{messageId}/content by Postman Result

{
    "message": "Not found"
}
Are you sure? question.vm