rocketchat-export-channel-messages icon indicating copy to clipboard operation
rocketchat-export-channel-messages copied to clipboard

Export of a Channel doesn't work

Open berardin opened this issue 3 years ago • 1 comments

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 "#<Name-of-room>"... /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

berardin avatar Jun 29 '21 15:06 berardin

+1, same error here. Rocket.Chat 5.4.2

$ node --version
v11.15.0

$ npm --version
7.24.2

Napsty avatar Aug 30 '23 12:08 Napsty