Error getting messages from channels using NodeJS
Good morning,
using NODEJS 1.47.1, messages aren't recieved with the following error:
2018-10-15 11:21:03 [1539595263429] - info:CHANNELS - (getMessagesFromChannel) messages retrieved { items:
[ { item:
{ '$': { id: '60391537BC677' },
entry:
{ '$':
{ xmlns: 'urn:xmpp:channels',
channelId: '************************',
timestamp: '2018-10-15T09:20:55.757Z',
from: '****************************' },
message: 'First Message in the channel',
title: 'New Tittle',
url: 'https://web.openrainbow.com/' } } } ],
set:
{ '$': { xmlns: 'http://jabber.org/protocol/rsm' },
count: '1',
first: { _: '2018-10-15T09:20:55.774077Z', '$': { index: '0' } },
last: '2018-10-15T09:20:55.774077Z' } }
2018-10-15 11:15:48 [1539594948807] - error:CHANNELS - (getMessagesFromChannel) error TypeError: Cannot read property 'title' of undefined
at messages.forEach (\rainbow-node-sdk\lib\services\Channels.js:880:51)
at Array.forEach (<anonymous>)
at _rest.getChannelMessages.then (\rainbow-node-sdk\lib\services\Channels.js:878:26)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
Best regards.
Alejandro.
Please sign in to leave a comment.
Comments
0 comments