matrix-hacks / matrix-puppet-slack

puppet style slack bridge for matrix
48 stars 17 forks source link

google hangouts invite integration link message doesn't come through to matrix side #6

Closed kfatehi closed 7 years ago

kfatehi commented 7 years ago
Thu, 09 Feb 2017 17:26:14 GMT matrix-puppet:slack:client raw message, type: user_typing
Thu, 09 Feb 2017 17:26:14 GMT matrix-puppet:slack:client emitting message: { type: 'message',
  channel: 'C2JLR11MW',
  user: 'U2JQRL6DP',
  text: '<https://hangouts.google.com/hangouts/_/uci.edu/inf191>',
  ts: '1486661174.000045',
  team: 'T2JM88UUS' }
Thu, 09 Feb 2017 17:26:14 GMT matrix-puppet:Base:handleThirdPartyRoomMessage:info handling third party room message { roomId: 'C2JLR11MW',
  senderName: 'bdwalker93',
  senderId: 'U2JQRL6DP',
  text: '<https://hangouts.google.com/hangouts/_/uci.edu/inf191>' }
Thu, 09 Feb 2017 17:26:14 GMT matrix-puppet:Base:getOrCreateMatrixRoomFromThirdPartyRoomId:info looking up C2JLR11MW
Thu, 09 Feb 2017 17:26:15 GMT matrix-puppet:Base:getOrCreateMatrixRoomFromThirdPartyRoomId:info found matrix room via alias. room_id: !UEFhZHBLmRWbVLzoeW:synapse.keyvan.pw
Thu, 09 Feb 2017 17:26:15 GMT matrix-puppet:Base:getOrCreateMatrixRoomFromThirdPartyRoomId:info making puppet join room !UEFhZHBLmRWbVLzoeW:synapse.keyvan.pw
Thu, 09 Feb 2017 17:26:15 GMT matrix-puppet:Base:getOrCreateMatrixRoomFromThirdPartyRoomId:info returning room id after join room attempt !UEFhZHBLmRWbVLzoeW:synapse.keyvan.pw
Thu, 09 Feb 2017 17:26:15 GMT matrix-puppet:Base:handleThirdPartyRoomMessage:info got or created matrix room with id !UEFhZHBLmRWbVLzoeW:synapse.keyvan.pw
Thu, 09 Feb 2017 17:26:15 GMT matrix-puppet:Base:handleThirdPartyRoomMessage:info this message was not sent by me, send it the matrix room via ghost user as text
[-] POST https://synapse.keyvan.pw/_matrix/client/r0/register (AS) Body: {"auth":{},"username":"slack_tableauautomation_U2JQRL6DP"}
Thu, 09 Feb 2017 17:26:15 GMT matrix-puppet:slack:client emitting message: { type: 'message',
  message:
   { type: 'message',
     user: 'U2JQRL6DP',
     text: '<https://hangouts.google.com/hangouts/_/uci.edu/inf191>',
     attachments: [ [Object] ],
     ts: '1486661174.000045' },
  subtype: 'message_changed',
  hidden: true,
  channel: 'C2JLR11MW',
  previous_message:
   { type: 'message',
     user: 'U2JQRL6DP',
     text: '<https://hangouts.google.com/hangouts/_/uci.edu/inf191>',
     ts: '1486661174.000045' },
  event_ts: '1486661175.428013',
  ts: '1486661175.000046' }
/home/keyvan/bridges/mpb/node_modules/olm/olm.js:19
"undefined"!==typeof module&&(module.exports=a);process.on("uncaughtException",function(a){if(!(a instanceof T))throw a;});a.inspect=function(){return"[Emscripten Module object]"}}else if(ma)a.print||(a.print=print),"undefined"!=typeof printErr&&(a.printErr=printErr),a.read="undefined"!=typeof read?read:function(){throw"no read() available (jsc?)";},a.readBinary=function(a){if("function"===typeof readbuffer)return new Uint8Array(readbuffer(a));a=read(a,"binary");z("object"===typeof a);return a},"undefined"!=
                                                                                                                ^

TypeError: Cannot read property 'name' of undefined
    at Client.client.on (/home/keyvan/bridges/slack/index.js:31:50)
    at emitOne (events.js:96:13)
    at Client.emit (events.js:188:7)
    at RTMClient.rtm.on (/home/keyvan/bridges/slack/client.js:34:16)
    at RTMClient.emit (/home/keyvan/bridges/slack/node_modules/eventemitter3/index.js:116:35)
    at RTMClient.emit (/home/keyvan/bridges/slack/node_modules/@slack/client/lib/clients/client.js:79:39)
    at RTMClient.handleWsMessage (/home/keyvan/bridges/slack/node_modules/@slack/client/lib/clients/rtm/client.js:406:8)
    at WebSocket.wrapper (/home/keyvan/bridges/slack/node_modules/lodash/lodash.js:4968:19)
    at emitTwo (events.js:106:13)
    at WebSocket.emit (events.js:191:7)
    at Receiver.ontext (/home/keyvan/bridges/slack/node_modules/ws/lib/WebSocket.js:841:10)
    at /home/keyvan/bridges/slack/node_modules/ws/lib/Receiver.js:536:18
    at Receiver.applyExtensions (/home/keyvan/bridges/slack/node_modules/ws/lib/Receiver.js:371:5)
    at /home/keyvan/bridges/slack/node_modules/ws/lib/Receiver.js:508:14
    at Receiver.flush (/home/keyvan/bridges/slack/node_modules/ws/lib/Receiver.js:347:3)
    at Receiver.finish (/home/keyvan/bridges/slack/node_modules/ws/lib/Receiver.js:541:12)
    at Receiver.expectHandler (/home/keyvan/bridges/slack/node_modules/ws/lib/Receiver.js:499:31)
    at Receiver.add (/home/keyvan/bridges/slack/node_modules/ws/lib/Receiver.js:103:24)
    at TLSSocket.realHandler (/home/keyvan/bridges/slack/node_modules/ws/lib/WebSocket.js:825:20)
    at emitOne (events.js:96:13)
    at TLSSocket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:176:18)
    at TLSSocket.Readable.push (_stream_readable.js:134:10)
    at TLSWrap.onread (net.js:548:20)