I was trying to export a group from Rocket.Chat but I get an exeption:
`Trying to figure out room type of "#"...
/opt/rocketchat-export-channel-messages/index.js:152
console.log('Looks like a ' + result.type.replace(/s$/, '') + '. Searching for messages ...');
^
TypeError: Cannot read property 'replace' of undefined
at /opt/rocketchat-export-channel-messages/index.js:152:51
at /opt/rocketchat-export-channel-messages/index.js:44:28
at Request._callback (/opt/rocketchat-export-channel-messages/node_modules/rocketchat/lib/net.js:147:39)
at Request.self.callback (/opt/rocketchat-export-channel-messages/node_modules/request/request.js:185:22)
at Request.emit (events.js:314:20)
at Request. (/opt/rocketchat-export-channel-messages/node_modules/request/request.js:1154:10)
at Request.emit (events.js:314:20)
at IncomingMessage. (/opt/rocketchat-export-channel-messages/node_modules/request/request.js:1076:12)`
It looks like the result is undefined, cause it get a "false" even if I tried with an API client and I can get the Info of the Room.
Hello,
first of all thanks for the tool!
I was trying to export a group from Rocket.Chat but I get an exeption:
`Trying to figure out room type of "#"...
/opt/rocketchat-export-channel-messages/index.js:152
console.log('Looks like a ' + result.type.replace(/s$/, '') + '. Searching for messages ...');
^
TypeError: Cannot read property 'replace' of undefined at /opt/rocketchat-export-channel-messages/index.js:152:51 at /opt/rocketchat-export-channel-messages/index.js:44:28 at Request._callback (/opt/rocketchat-export-channel-messages/node_modules/rocketchat/lib/net.js:147:39) at Request.self.callback (/opt/rocketchat-export-channel-messages/node_modules/request/request.js:185:22) at Request.emit (events.js:314:20) at Request. (/opt/rocketchat-export-channel-messages/node_modules/request/request.js:1154:10)
at Request.emit (events.js:314:20)
at IncomingMessage. (/opt/rocketchat-export-channel-messages/node_modules/request/request.js:1076:12)`
It looks like the result is undefined, cause it get a "false" even if I tried with an API client and I can get the Info of the Room.
There is something which I do wrong?
Thanks, Nico