Q&A

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
  • 2
  • 4167
  • X(旧Twitter) facebook

I was also getting the same error in Ruby but then upgraded versions of the gem which did the trick

  • 0

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

{
    "message": "Not found"
}
  • 0

関連する質問

    関連する質問はありません

本当によろしいですか? question.vm