matrix-org / pantalaimon

E2EE aware proxy daemon for matrix clients.
Apache License 2.0
294 stars 42 forks source link

Removing messages with Mjolnir using Pantalaimon does not work anymoe #86

Closed anonchuck closed 3 years ago

anonchuck commented 3 years ago

Describe the bug When using the mjolnir !redact command, it says "There was an error processing your command - see console/log for details". (log below)

As I asked about that in the mjolnir chatroom, TravisR (one of the mjolnir developers) said:

hmm, looks like a pantalaimon bug It appears to be trying to handle reactions (not redactions) as messages, which won't work

To Reproduce Steps to reproduce the behavior:

  1. Connect mjolnir to pantalaimon
  2. Use the command !mjolnir redact ...
  3. See error

Expected behavior The message(s) should be deleted.

Additional context Using the "latest" pantalaimon and mjolnir docker images.

Logs Pantalaimon


pantalaimon     | ======== Starting daemon for homeserver local-matrix on http://0.0.0.0:8008 ========
pantalaimon     | (Press CTRL+C to quit)
pantalaimon     | Error handling request
pantalaimon     | Traceback (most recent call last):
pantalaimon     |   File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
pantalaimon     |     resp = await self._request_handler(request)
pantalaimon     |   File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 499, in _handle
pantalaimon     |     resp = await handler(request)
pantalaimon     |   File "/usr/local/lib/python3.8/site-packages/pantalaimon/daemon.py", line 925, in send_message
pantalaimon     |     content_msgtype = content["msgtype"]
pantalaimon     | KeyError: 'msgtype'
pantalaimon     | Error handling request
pantalaimon     | Traceback (most recent call last):
pantalaimon     |   File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
pantalaimon     |     resp = await self._request_handler(request)
pantalaimon     |   File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 499, in _handle
pantalaimon     |     resp = await handler(request)
pantalaimon     |   File "/usr/local/lib/python3.8/site-packages/pantalaimon/daemon.py", line 925, in send_message
pantalaimon     |     content_msgtype = content["msgtype"]
pantalaimon     | KeyError: 'msgtype'
pantalaimon     | Error handling request
pantalaimon     | Traceback (most recent call last):
pantalaimon     |   File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
pantalaimon     |     resp = await self._request_handler(request)
pantalaimon     |   File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 499, in _handle
pantalaimon     |     resp = await handler(request)
pantalaimon     |   File "/usr/local/lib/python3.8/site-packages/pantalaimon/daemon.py", line 925, in send_message
pantalaimon     |     content_msgtype = content["msgtype"]
pantalaimon     | KeyError: 'msgtype'

Mjolnir

mjolnir         | Sun, 17 Jan 2021 20:24:39 GMT [INFO] [Mjolnir] Command being run by @anon_chuck:hive-mind.network: !mjolnir redact https://matrix.to/#/!ZBSzhdCbiCgEkAVOru:hive-mind.network/$3r-4nGOf6UdtpNCo-aUMXPIEKvzR13rC5Fte_ecFMVk?via=hive-mind.network
mjolnir         | Sun, 17 Jan 2021 20:24:39 GMT [INFO] [MatrixLiteClient (REQ-196)] POST http://pantalaimon:8008/_matrix/client/r0/rooms/!gJaYOVoudshlAVfWFw%3Ahive-mind.network/receipt/m.read/%24_eLls2I-PBQ8Gzmv12VvpSiK9Nocf6vDWNdv9wmnxw8
mjolnir         | Sun, 17 Jan 2021 20:24:39 GMT [INFO] [MatrixClientLite] Performing sync with token s5223493_79577804_11684_6809134_1329142_1807_606014_7990940_112
mjolnir         | Sun, 17 Jan 2021 20:24:39 GMT [INFO] [MatrixLiteClient (REQ-197)] GET http://pantalaimon:8008/_matrix/client/r0/sync
mjolnir         | Sun, 17 Jan 2021 20:24:39 GMT [INFO] [MatrixLiteClient (REQ-198)] PUT http://pantalaimon:8008/_matrix/client/r0/rooms/!gJaYOVoudshlAVfWFw%3Ahive-mind.network/send/m.reaction/1610915079252__REQ197
mjolnir         | Sun, 17 Jan 2021 20:24:39 GMT [INFO] [MatrixClientLite] Received sync. Next token: s5223493_79577804_11684_6809135_1329142_1807_606014_7990940_112
mjolnir         | Sun, 17 Jan 2021 20:24:39 GMT [INFO] [MatrixClientLite] Performing sync with token s5223493_79577804_11684_6809135_1329142_1807_606014_7990940_112
mjolnir         | Sun, 17 Jan 2021 20:24:39 GMT [INFO] [MatrixLiteClient (REQ-199)] GET http://pantalaimon:8008/_matrix/client/r0/sync
mjolnir         | Sun, 17 Jan 2021 20:24:39 GMT [ERROR] [MatrixLiteClient (REQ-198)] 500 Internal Server Error
mjolnir         | 
mjolnir         | Server got itself in trouble
mjolnir         | Sun, 17 Jan 2021 20:24:39 GMT [ERROR] [CommandHandler] <ref *2> IncomingMessage {
mjolnir         |   _readableState: ReadableState {
mjolnir         |     objectMode: false,
mjolnir         |     highWaterMark: 16384,
mjolnir         |     buffer: BufferList { head: null, tail: null, length: 0 },
mjolnir         |     length: 0,
mjolnir         |     pipes: [],
mjolnir         |     flowing: true,
mjolnir         |     ended: true,
mjolnir         |     endEmitted: true,
mjolnir         |     reading: false,
mjolnir         |     constructed: true,
mjolnir         |     sync: true,
mjolnir         |     needReadable: false,
mjolnir         |     emittedReadable: false,
mjolnir         |     readableListening: false,
mjolnir         |     resumeScheduled: false,
mjolnir         |     errorEmitted: false,
mjolnir         |     emitClose: true,
mjolnir         |     autoDestroy: false,
mjolnir         |     destroyed: false,
mjolnir         |     errored: null,
mjolnir         |     closed: false,
mjolnir         |     closeEmitted: false,
mjolnir         |     defaultEncoding: 'utf8',
mjolnir         |     awaitDrainWriters: null,
mjolnir         |     multiAwaitDrain: false,
mjolnir         |     readingMore: true,
mjolnir         |     decoder: null,
mjolnir         |     encoding: null,
mjolnir         |     [Symbol(kPaused)]: false
mjolnir         |   },
mjolnir         |   _events: [Object: null prototype] {
mjolnir         |     end: [ [Function: responseOnEnd], [Function (anonymous)] ],
mjolnir         |     close: [ [Function (anonymous)], [Function (anonymous)] ],
mjolnir         |     data: [Function (anonymous)],
mjolnir         |     error: [Function (anonymous)]
mjolnir         |   },
mjolnir         |   _eventsCount: 4,
mjolnir         |   _maxListeners: undefined,
mjolnir         |   socket: <ref *1> Socket {
mjolnir         |     connecting: false,
mjolnir         |     _hadError: false,
mjolnir         |     _parent: null,
mjolnir         |     _host: 'pantalaimon',
mjolnir         |     _readableState: ReadableState {
mjolnir         |       objectMode: false,
mjolnir         |       highWaterMark: 16384,
mjolnir         |       buffer: BufferList { head: null, tail: null, length: 0 },
mjolnir         |       length: 0,
mjolnir         |       pipes: [],
mjolnir         |       flowing: true,
mjolnir         |       ended: false,
mjolnir         |       endEmitted: false,
mjolnir         |       reading: true,
mjolnir         |       constructed: true,
mjolnir         |       sync: false,
mjolnir         |       needReadable: true,
mjolnir         |       emittedReadable: false,
mjolnir         |       readableListening: false,
mjolnir         |       resumeScheduled: false,
mjolnir         |       errorEmitted: false,
mjolnir         |       emitClose: false,
mjolnir         |       autoDestroy: true,
mjolnir         |       destroyed: false,
mjolnir         |       errored: null,
mjolnir         |       closed: false,
mjolnir         |       closeEmitted: false,
mjolnir         |       defaultEncoding: 'utf8',
mjolnir         |       awaitDrainWriters: null,
mjolnir         |       multiAwaitDrain: false,
mjolnir         |       readingMore: false,
mjolnir         |       decoder: null,
mjolnir         |       encoding: null,
mjolnir         |       [Symbol(kPaused)]: false
mjolnir         |     },
mjolnir         |     _events: [Object: null prototype] {
mjolnir         |       end: [Function: onReadableStreamEnd],
mjolnir         |       free: [Function: onFree],
mjolnir         |       close: [Array],
mjolnir         |       timeout: [Function: onTimeout],
mjolnir         |       agentRemove: [Function: onRemove],
mjolnir         |       error: [Function: socketErrorListener],
mjolnir         |       finish: [Function]
mjolnir         |     },
mjolnir         |     _eventsCount: 7,
mjolnir         |     _maxListeners: undefined,
mjolnir         |     _writableState: WritableState {
mjolnir         |       objectMode: false,
mjolnir         |       highWaterMark: 16384,
mjolnir         |       finalCalled: true,
mjolnir         |       needDrain: false,
mjolnir         |       ending: true,
mjolnir         |       ended: true,
mjolnir         |       finished: false,
mjolnir         |       destroyed: false,
mjolnir         |       decodeStrings: false,
mjolnir         |       defaultEncoding: 'utf8',
mjolnir         |       length: 0,
mjolnir         |       writing: false,
mjolnir         |       corked: 0,
mjolnir         |       sync: false,
mjolnir         |       bufferProcessing: false,
mjolnir         |       onwrite: [Function: bound onwrite],
mjolnir         |       writecb: null,
mjolnir         |       writelen: 0,
mjolnir         |       afterWriteTickInfo: null,
mjolnir         |       buffered: [],
mjolnir         |       bufferedIndex: 0,
mjolnir         |       allBuffers: true,
mjolnir         |       allNoop: true,
mjolnir         |       pendingcb: 1,
mjolnir         |       constructed: true,
mjolnir         |       prefinished: false,
mjolnir         |       errorEmitted: false,
mjolnir         |       emitClose: false,
mjolnir         |       autoDestroy: true,
mjolnir         |       errored: null,
mjolnir         |       closed: false,
mjolnir         |       closeEmitted: false,
mjolnir         |       writable: true,
mjolnir         |       [Symbol(kOnFinished)]: []
mjolnir         |     },
mjolnir         |     allowHalfOpen: false,
mjolnir         |     _sockname: null,
mjolnir         |     _pendingData: null,
mjolnir         |     _pendingEncoding: '',
mjolnir         |     server: null,
mjolnir         |     _server: null,
mjolnir         |     parser: null,
mjolnir         |     _httpMessage: ClientRequest {
mjolnir         |       _events: [Object: null prototype],
mjolnir         |       _eventsCount: 6,
mjolnir         |       _maxListeners: undefined,
mjolnir         |       outputData: [],
mjolnir         |       outputSize: 0,
mjolnir         |       writable: true,
mjolnir         |       destroyed: false,
mjolnir         |       _last: true,
mjolnir         |       chunkedEncoding: false,
mjolnir         |       shouldKeepAlive: false,
mjolnir         |       _defaultKeepAlive: true,
mjolnir         |       useChunkedEncodingByDefault: true,
mjolnir         |       sendDate: false,
mjolnir         |       _removedConnection: false,
mjolnir         |       _removedContLen: false,
mjolnir         |       _removedTE: false,
mjolnir         |       _contentLength: null,
mjolnir         |       _hasBody: true,
mjolnir         |       _trailer: '',
mjolnir         |       finished: true,
mjolnir         |       _headerSent: true,
mjolnir         |       _closed: false,
mjolnir         |       socket: [Circular *1],
mjolnir         |       _header: 'PUT /_matrix/client/r0/rooms/!gJaYOVoudshlAVfWFw%3Ahive-mind.network/send/m.reaction/1610915079252__REQ197 HTTP/1.1\r\n' +
mjolnir         |         'Authorization: Bearer REDACTED\r\n' +
mjolnir         |         'Content-Type: application/json\r\n' +
mjolnir         |         'host: pantalaimon:8008\r\n' +
mjolnir         |         'content-length: 122\r\n' +
mjolnir         |         'Connection: close\r\n' +
mjolnir         |         '\r\n',
mjolnir         |       _keepAliveTimeout: 0,
mjolnir         |       _onPendingData: [Function: noopPendingOutput],
mjolnir         |       agent: [Agent],
mjolnir         |       socketPath: undefined,
mjolnir         |       method: 'PUT',
mjolnir         |       maxHeaderSize: undefined,
mjolnir         |       insecureHTTPParser: undefined,
mjolnir         |       path: '/_matrix/client/r0/rooms/!gJaYOVoudshlAVfWFw%3Ahive-mind.network/send/m.reaction/1610915079252__REQ197',
mjolnir         |       _ended: true,
mjolnir         |       res: [Circular *2],
mjolnir         |       aborted: false,
mjolnir         |       timeoutCb: [Function: emitRequestTimeout],
mjolnir         |       upgradeOrConnect: false,
mjolnir         |       parser: null,
mjolnir         |       maxHeadersCount: null,
mjolnir         |       reusedSocket: false,
mjolnir         |       host: 'pantalaimon',
mjolnir         |       protocol: 'http:',
mjolnir         |       [Symbol(kCapture)]: false,
mjolnir         |       [Symbol(kNeedDrain)]: false,
mjolnir         |       [Symbol(corked)]: 0,
mjolnir         |       [Symbol(kOutHeaders)]: [Object: null prototype]
mjolnir         |     },
mjolnir         |     timeout: 60000,
mjolnir         |     [Symbol(async_id_symbol)]: 4567,
mjolnir         |     [Symbol(kHandle)]: TCP {
mjolnir         |       reading: true,
mjolnir         |       onconnection: null,
mjolnir         |       [Symbol(owner_symbol)]: [Circular *1]
mjolnir         |     },
mjolnir         |     [Symbol(kSetNoDelay)]: false,
mjolnir         |     [Symbol(lastWriteQueueSize)]: 0,
mjolnir         |     [Symbol(timeout)]: Timeout {
mjolnir         |       _idleTimeout: 60000,
mjolnir         |       _idlePrev: [TimersList],
mjolnir         |       _idleNext: [TimersList],
mjolnir         |       _idleStart: 42109,
mjolnir         |       _onTimeout: [Function: bound ],
mjolnir         |       _timerArgs: undefined,
mjolnir         |       _repeat: null,
mjolnir         |       _destroyed: false,
mjolnir         |       [Symbol(refed)]: false,
mjolnir         |       [Symbol(kHasPrimitive)]: false,
mjolnir         |       [Symbol(asyncId)]: 4578,
mjolnir         |       [Symbol(triggerId)]: 4577
mjolnir         |     },
mjolnir         |     [Symbol(kBuffer)]: null,
mjolnir         |     [Symbol(kBufferCb)]: null,
mjolnir         |     [Symbol(kBufferGen)]: null,
mjolnir         |     [Symbol(kCapture)]: false,
mjolnir         |     [Symbol(kBytesRead)]: 0,
mjolnir         |     [Symbol(kBytesWritten)]: 0,
mjolnir         |     [Symbol(RequestTimeout)]: undefined
mjolnir         |   },
mjolnir         |   httpVersionMajor: 1,
mjolnir         |   httpVersionMinor: 1,
mjolnir         |   httpVersion: '1.1',
mjolnir         |   complete: true,
mjolnir         |   headers: {
mjolnir         |     'content-type': 'text/plain; charset=utf-8',
mjolnir         |     'content-length': '55',
mjolnir         |     date: 'Sun, 17 Jan 2021 20:24:39 GMT',
mjolnir         |     server: 'Python/3.8 aiohttp/3.7.3',
mjolnir         |     connection: 'close'
mjolnir         |   },
mjolnir         |   rawHeaders: [
mjolnir         |     'Content-Type',
mjolnir         |     'text/plain; charset=utf-8',
mjolnir         |     'Content-Length',
mjolnir         |     '55',
mjolnir         |     'Date',
mjolnir         |     'Sun, 17 Jan 2021 20:24:39 GMT',
mjolnir         |     'Server',
mjolnir         |     'Python/3.8 aiohttp/3.7.3',
mjolnir         |     'Connection',
mjolnir         |     'close'
mjolnir         |   ],
mjolnir         |   trailers: {},
mjolnir         |   rawTrailers: [],
mjolnir         |   aborted: false,
mjolnir         |   upgrade: false,
mjolnir         |   url: '',
mjolnir         |   method: null,
mjolnir         |   statusCode: 500,
mjolnir         |   statusMessage: 'Internal Server Error',
mjolnir         |   client: <ref *1> Socket {
mjolnir         |     connecting: false,
mjolnir         |     _hadError: false,
mjolnir         |     _parent: null,
mjolnir         |     _host: 'pantalaimon',
mjolnir         |     _readableState: ReadableState {
mjolnir         |       objectMode: false,
mjolnir         |       highWaterMark: 16384,
mjolnir         |       buffer: BufferList { head: null, tail: null, length: 0 },
mjolnir         |       length: 0,
mjolnir         |       pipes: [],
mjolnir         |       flowing: true,
mjolnir         |       ended: false,
mjolnir         |       endEmitted: false,
mjolnir         |       reading: true,
mjolnir         |       constructed: true,
mjolnir         |       sync: false,
mjolnir         |       needReadable: true,
mjolnir         |       emittedReadable: false,
mjolnir         |       readableListening: false,
mjolnir         |       resumeScheduled: false,
mjolnir         |       errorEmitted: false,
mjolnir         |       emitClose: false,
mjolnir         |       autoDestroy: true,
mjolnir         |       destroyed: false,
mjolnir         |       errored: null,
mjolnir         |       closed: false,
mjolnir         |       closeEmitted: false,
mjolnir         |       defaultEncoding: 'utf8',
mjolnir         |       awaitDrainWriters: null,
mjolnir         |       multiAwaitDrain: false,
mjolnir         |       readingMore: false,
mjolnir         |       decoder: null,
mjolnir         |       encoding: null,
mjolnir         |       [Symbol(kPaused)]: false
mjolnir         |     },
mjolnir         |     _events: [Object: null prototype] {
mjolnir         |       end: [Function: onReadableStreamEnd],
mjolnir         |       free: [Function: onFree],
mjolnir         |       close: [Array],
mjolnir         |       timeout: [Function: onTimeout],
mjolnir         |       agentRemove: [Function: onRemove],
mjolnir         |       error: [Function: socketErrorListener],
mjolnir         |       finish: [Function]
mjolnir         |     },
mjolnir         |     _eventsCount: 7,
mjolnir         |     _maxListeners: undefined,
mjolnir         |     _writableState: WritableState {
mjolnir         |       objectMode: false,
mjolnir         |       highWaterMark: 16384,
mjolnir         |       finalCalled: true,
mjolnir         |       needDrain: false,
mjolnir         |       ending: true,
mjolnir         |       ended: true,
mjolnir         |       finished: false,
mjolnir         |       destroyed: false,
mjolnir         |       decodeStrings: false,
mjolnir         |       defaultEncoding: 'utf8',
mjolnir         |       length: 0,
mjolnir         |       writing: false,
mjolnir         |       corked: 0,
mjolnir         |       sync: false,
mjolnir         |       bufferProcessing: false,
mjolnir         |       onwrite: [Function: bound onwrite],
mjolnir         |       writecb: null,
mjolnir         |       writelen: 0,
mjolnir         |       afterWriteTickInfo: null,
mjolnir         |       buffered: [],
mjolnir         |       bufferedIndex: 0,
mjolnir         |       allBuffers: true,
mjolnir         |       allNoop: true,
mjolnir         |       pendingcb: 1,
mjolnir         |       constructed: true,
mjolnir         |       prefinished: false,
mjolnir         |       errorEmitted: false,
mjolnir         |       emitClose: false,
mjolnir         |       autoDestroy: true,
mjolnir         |       errored: null,
mjolnir         |       closed: false,
mjolnir         |       closeEmitted: false,
mjolnir         |       writable: true,
mjolnir         |       [Symbol(kOnFinished)]: []
mjolnir         |     },
mjolnir         |     allowHalfOpen: false,
mjolnir         |     _sockname: null,
mjolnir         |     _pendingData: null,
mjolnir         |     _pendingEncoding: '',
mjolnir         |     server: null,
mjolnir         |     _server: null,
mjolnir         |     parser: null,
mjolnir         |     _httpMessage: ClientRequest {
mjolnir         |       _events: [Object: null prototype],
mjolnir         |       _eventsCount: 6,
mjolnir         |       _maxListeners: undefined,
mjolnir         |       outputData: [],
mjolnir         |       outputSize: 0,
mjolnir         |       writable: true,
mjolnir         |       destroyed: false,
mjolnir         |       _last: true,
mjolnir         |       chunkedEncoding: false,
mjolnir         |       shouldKeepAlive: false,
mjolnir         |       _defaultKeepAlive: true,
mjolnir         |       useChunkedEncodingByDefault: true,
mjolnir         |       sendDate: false,
mjolnir         |       _removedConnection: false,
mjolnir         |       _removedContLen: false,
mjolnir         |       _removedTE: false,
mjolnir         |       _contentLength: null,
mjolnir         |       _hasBody: true,
mjolnir         |       _trailer: '',
mjolnir         |       finished: true,
mjolnir         |       _headerSent: true,
mjolnir         |       _closed: false,
mjolnir         |       socket: [Circular *1],
mjolnir         |       _header: 'PUT /_matrix/client/r0/rooms/!gJaYOVoudshlAVfWFw%3Ahive-mind.network/send/m.reaction/1610915079252__REQ197 HTTP/1.1\r\n' +
mjolnir         |         'Authorization: Bearer REDACTED\r\n' +
mjolnir         |         'Content-Type: application/json\r\n' +
mjolnir         |         'host: pantalaimon:8008\r\n' +
mjolnir         |         'content-length: 122\r\n' +
mjolnir         |         'Connection: close\r\n' +
mjolnir         |         '\r\n',
mjolnir         |       _keepAliveTimeout: 0,
mjolnir         |       _onPendingData: [Function: noopPendingOutput],
mjolnir         |       agent: [Agent],
mjolnir         |       socketPath: undefined,
mjolnir         |       method: 'PUT',
mjolnir         |       maxHeaderSize: undefined,
mjolnir         |       insecureHTTPParser: undefined,
mjolnir         |       path: '/_matrix/client/r0/rooms/!gJaYOVoudshlAVfWFw%3Ahive-mind.network/send/m.reaction/1610915079252__REQ197',
mjolnir         |       _ended: true,
mjolnir         |       res: [Circular *2],
mjolnir         |       aborted: false,
mjolnir         |       timeoutCb: [Function: emitRequestTimeout],
mjolnir         |       upgradeOrConnect: false,
mjolnir         |       parser: null,
mjolnir         |       maxHeadersCount: null,
mjolnir         |       reusedSocket: false,
mjolnir         |       host: 'pantalaimon',
mjolnir         |       protocol: 'http:',
mjolnir         |       [Symbol(kCapture)]: false,
mjolnir         |       [Symbol(kNeedDrain)]: false,
mjolnir         |       [Symbol(corked)]: 0,
mjolnir         |       [Symbol(kOutHeaders)]: [Object: null prototype]
mjolnir         |     },
mjolnir         |     timeout: 60000,
mjolnir         |     [Symbol(async_id_symbol)]: 4567,
mjolnir         |     [Symbol(kHandle)]: TCP {
mjolnir         |       reading: true,
mjolnir         |       onconnection: null,
mjolnir         |       [Symbol(owner_symbol)]: [Circular *1]
mjolnir         |     },
mjolnir         |     [Symbol(kSetNoDelay)]: false,
mjolnir         |     [Symbol(lastWriteQueueSize)]: 0,
mjolnir         |     [Symbol(timeout)]: Timeout {
mjolnir         |       _idleTimeout: 60000,
mjolnir         |       _idlePrev: [TimersList],
mjolnir         |       _idleNext: [TimersList],
mjolnir         |       _idleStart: 42109,
mjolnir         |       _onTimeout: [Function: bound ],
mjolnir         |       _timerArgs: undefined,
mjolnir         |       _repeat: null,
mjolnir         |       _destroyed: false,
mjolnir         |       [Symbol(refed)]: false,
mjolnir         |       [Symbol(kHasPrimitive)]: false,
mjolnir         |       [Symbol(asyncId)]: 4578,
mjolnir         |       [Symbol(triggerId)]: 4577
mjolnir         |     },
mjolnir         |     [Symbol(kBuffer)]: null,
mjolnir         |     [Symbol(kBufferCb)]: null,
mjolnir         |     [Symbol(kBufferGen)]: null,
mjolnir         |     [Symbol(kCapture)]: false,
mjolnir         |     [Symbol(kBytesRead)]: 0,
mjolnir         |     [Symbol(kBytesWritten)]: 0,
mjolnir         |     [Symbol(RequestTimeout)]: undefined
mjolnir         |   },
mjolnir         |   _consuming: false,
mjolnir         |   _dumped: false,
mjolnir         |   req: <ref *3> ClientRequest {
mjolnir         |     _events: [Object: null prototype] {
mjolnir         |       socket: [Function (anonymous)],
mjolnir         |       response: [Function: bound ],
mjolnir         |       error: [Array],
mjolnir         |       drain: [Function (anonymous)],
mjolnir         |       timeout: [Function],
mjolnir         |       prefinish: [Function: requestOnPrefinish]
mjolnir         |     },
mjolnir         |     _eventsCount: 6,
mjolnir         |     _maxListeners: undefined,
mjolnir         |     outputData: [],
mjolnir         |     outputSize: 0,
mjolnir         |     writable: true,
mjolnir         |     destroyed: false,
mjolnir         |     _last: true,
mjolnir         |     chunkedEncoding: false,
mjolnir         |     shouldKeepAlive: false,
mjolnir         |     _defaultKeepAlive: true,
mjolnir         |     useChunkedEncodingByDefault: true,
mjolnir         |     sendDate: false,
mjolnir         |     _removedConnection: false,
mjolnir         |     _removedContLen: false,
mjolnir         |     _removedTE: false,
mjolnir         |     _contentLength: null,
mjolnir         |     _hasBody: true,
mjolnir         |     _trailer: '',
mjolnir         |     finished: true,
mjolnir         |     _headerSent: true,
mjolnir         |     _closed: false,
mjolnir         |     socket: <ref *1> Socket {
mjolnir         |       connecting: false,
mjolnir         |       _hadError: false,
mjolnir         |       _parent: null,
mjolnir         |       _host: 'pantalaimon',
mjolnir         |       _readableState: [ReadableState],
mjolnir         |       _events: [Object: null prototype],
mjolnir         |       _eventsCount: 7,
mjolnir         |       _maxListeners: undefined,
mjolnir         |       _writableState: [WritableState],
mjolnir         |       allowHalfOpen: false,
mjolnir         |       _sockname: null,
mjolnir         |       _pendingData: null,
mjolnir         |       _pendingEncoding: '',
mjolnir         |       server: null,
mjolnir         |       _server: null,
mjolnir         |       parser: null,
mjolnir         |       _httpMessage: [Circular *3],
mjolnir         |       timeout: 60000,
mjolnir         |       [Symbol(async_id_symbol)]: 4567,
mjolnir         |       [Symbol(kHandle)]: [TCP],
mjolnir         |       [Symbol(kSetNoDelay)]: false,
mjolnir         |       [Symbol(lastWriteQueueSize)]: 0,
mjolnir         |       [Symbol(timeout)]: Timeout {
mjolnir         |         _idleTimeout: 60000,
mjolnir         |         _idlePrev: [TimersList],
mjolnir         |         _idleNext: [TimersList],
mjolnir         |         _idleStart: 42109,
mjolnir         |         _onTimeout: [Function: bound ],
mjolnir         |         _timerArgs: undefined,
mjolnir         |         _repeat: null,
mjolnir         |         _destroyed: false,
mjolnir         |         [Symbol(refed)]: false,
mjolnir         |         [Symbol(kHasPrimitive)]: false,
mjolnir         |         [Symbol(asyncId)]: 4578,
mjolnir         |         [Symbol(triggerId)]: 4577
mjolnir         |       },
mjolnir         |       [Symbol(kBuffer)]: null,
mjolnir         |       [Symbol(kBufferCb)]: null,
mjolnir         |       [Symbol(kBufferGen)]: null,
mjolnir         |       [Symbol(kCapture)]: false,
mjolnir         |       [Symbol(kBytesRead)]: 0,
mjolnir         |       [Symbol(kBytesWritten)]: 0,
mjolnir         |       [Symbol(RequestTimeout)]: undefined
mjolnir         |     },
mjolnir         |     _header: 'PUT /_matrix/client/r0/rooms/!gJaYOVoudshlAVfWFw%3Ahive-mind.network/send/m.reaction/1610915079252__REQ197 HTTP/1.1\r\n' +
mjolnir         |       'Authorization: Bearer REDACTED\r\n' +
mjolnir         |       'Content-Type: application/json\r\n' +
mjolnir         |       'host: pantalaimon:8008\r\n' +
mjolnir         |       'content-length: 122\r\n' +
mjolnir         |       'Connection: close\r\n' +
mjolnir         |       '\r\n',
mjolnir         |     _keepAliveTimeout: 0,
mjolnir         |     _onPendingData: [Function: noopPendingOutput],
mjolnir         |     agent: Agent {
mjolnir         |       _events: [Object: null prototype],
mjolnir         |       _eventsCount: 2,
mjolnir         |       _maxListeners: undefined,
mjolnir         |       defaultPort: 80,
mjolnir         |       protocol: 'http:',
mjolnir         |       options: [Object],
mjolnir         |       requests: {},
mjolnir         |       sockets: [Object],
mjolnir         |       freeSockets: {},
mjolnir         |       keepAliveMsecs: 1000,
mjolnir         |       keepAlive: false,
mjolnir         |       maxSockets: Infinity,
mjolnir         |       maxFreeSockets: 256,
mjolnir         |       scheduling: 'fifo',
mjolnir         |       maxTotalSockets: Infinity,
mjolnir         |       totalSocketCount: 3,
mjolnir         |       [Symbol(kCapture)]: false
mjolnir         |     },
mjolnir         |     socketPath: undefined,
mjolnir         |     method: 'PUT',
mjolnir         |     maxHeaderSize: undefined,
mjolnir         |     insecureHTTPParser: undefined,
mjolnir         |     path: '/_matrix/client/r0/rooms/!gJaYOVoudshlAVfWFw%3Ahive-mind.network/send/m.reaction/1610915079252__REQ197',
mjolnir         |     _ended: true,
mjolnir         |     res: [Circular *2],
mjolnir         |     aborted: false,
mjolnir         |     timeoutCb: [Function: emitRequestTimeout],
mjolnir         |     upgradeOrConnect: false,
mjolnir         |     parser: null,
mjolnir         |     maxHeadersCount: null,
mjolnir         |     reusedSocket: false,
mjolnir         |     host: 'pantalaimon',
mjolnir         |     protocol: 'http:',
mjolnir         |     [Symbol(kCapture)]: false,
mjolnir         |     [Symbol(kNeedDrain)]: false,
mjolnir         |     [Symbol(corked)]: 0,
mjolnir         |     [Symbol(kOutHeaders)]: [Object: null prototype] {
mjolnir         |       authorization: [Array],
mjolnir         |       'content-type': [Array],
mjolnir         |       host: [Array],
mjolnir         |       'content-length': [Array]
mjolnir         |     }
mjolnir         |   },
mjolnir         |   request: <ref *4> Request {
mjolnir         |     _events: [Object: null prototype] {
mjolnir         |       error: [Function: bound ],
mjolnir         |       complete: [Function: bound ],
mjolnir         |       pipe: [Function (anonymous)],
mjolnir         |       data: [Function (anonymous)],
mjolnir         |       end: [Function (anonymous)]
mjolnir         |     },
mjolnir         |     _eventsCount: 5,
mjolnir         |     _maxListeners: undefined,
mjolnir         |     uri: Url {
mjolnir         |       protocol: 'http:',
mjolnir         |       slashes: true,
mjolnir         |       auth: null,
mjolnir         |       host: 'pantalaimon:8008',
mjolnir         |       port: '8008',
mjolnir         |       hostname: 'pantalaimon',
mjolnir         |       hash: null,
mjolnir         |       search: null,
mjolnir         |       query: null,
mjolnir         |       pathname: '/_matrix/client/r0/rooms/!gJaYOVoudshlAVfWFw%3Ahive-mind.network/send/m.reaction/1610915079252__REQ197',
mjolnir         |       path: '/_matrix/client/r0/rooms/!gJaYOVoudshlAVfWFw%3Ahive-mind.network/send/m.reaction/1610915079252__REQ197',
mjolnir         |       href: 'http://pantalaimon:8008/_matrix/client/r0/rooms/!gJaYOVoudshlAVfWFw%3Ahive-mind.network/send/m.reaction/1610915079252__REQ197'
mjolnir         |     },
mjolnir         |     method: 'PUT',
mjolnir         |     userQuerystring: true,
mjolnir         |     qsStringifyOptions: { options: [Object] },
mjolnir         |     timeout: 60000,
mjolnir         |     headers: {
mjolnir         |       Authorization: 'Bearer REDACTED',
mjolnir         |       'Content-Type': 'application/json',
mjolnir         |       'content-length': 122
mjolnir         |     },
mjolnir         |     body: '{"m.relates_to":{"event_id":"$_eLls2I-PBQ8Gzmv12VvpSiK9Nocf6vDWNdv9wmnxw8","key":"In Progress","rel_type":"m.annotation"}}',
mjolnir         |     callback: [Function (anonymous)],
mjolnir         |     readable: true,
mjolnir         |     writable: true,
mjolnir         |     explicitMethod: true,
mjolnir         |     _qs: Querystring {
mjolnir         |       request: [Circular *4],
mjolnir         |       lib: [Object],
mjolnir         |       useQuerystring: undefined,
mjolnir         |       parseOptions: {},
mjolnir         |       stringifyOptions: [Object]
mjolnir         |     },
mjolnir         |     _auth: Auth {
mjolnir         |       request: [Circular *4],
mjolnir         |       hasAuth: false,
mjolnir         |       sentAuth: false,
mjolnir         |       bearerToken: null,
mjolnir         |       user: null,
mjolnir         |       pass: null
mjolnir         |     },
mjolnir         |     _oauth: OAuth { request: [Circular *4], params: null },
mjolnir         |     _multipart: Multipart {
mjolnir         |       request: [Circular *4],
mjolnir         |       boundary: 'b6b86898-7edb-4d80-ab13-e525daca4539',
mjolnir         |       chunked: false,
mjolnir         |       body: null
mjolnir         |     },
mjolnir         |     _redirect: Redirect {
mjolnir         |       request: [Circular *4],
mjolnir         |       followRedirect: true,
mjolnir         |       followRedirects: true,
mjolnir         |       followAllRedirects: false,
mjolnir         |       followOriginalHttpMethod: false,
mjolnir         |       allowRedirect: [Function (anonymous)],
mjolnir         |       maxRedirects: 10,
mjolnir         |       redirects: [],
mjolnir         |       redirectsFollowed: 0,
mjolnir         |       removeRefererHeader: false
mjolnir         |     },
mjolnir         |     _tunnel: Tunnel {
mjolnir         |       request: [Circular *4],
mjolnir         |       proxyHeaderWhiteList: [Array],
mjolnir         |       proxyHeaderExclusiveList: []
mjolnir         |     },
mjolnir         |     setHeader: [Function (anonymous)],
mjolnir         |     hasHeader: [Function (anonymous)],
mjolnir         |     getHeader: [Function (anonymous)],
mjolnir         |     removeHeader: [Function (anonymous)],
mjolnir         |     localAddress: undefined,
mjolnir         |     pool: {},
mjolnir         |     dests: [],
mjolnir         |     __isRequestRequest: true,
mjolnir         |     _callback: [Function (anonymous)],
mjolnir         |     proxy: null,
mjolnir         |     tunnel: false,
mjolnir         |     setHost: true,
mjolnir         |     originalCookieHeader: undefined,
mjolnir         |     _disableCookies: true,
mjolnir         |     _jar: undefined,
mjolnir         |     port: '8008',
mjolnir         |     host: 'pantalaimon',
mjolnir         |     path: '/_matrix/client/r0/rooms/!gJaYOVoudshlAVfWFw%3Ahive-mind.network/send/m.reaction/1610915079252__REQ197',
mjolnir         |     httpModule: {
mjolnir         |       _connectionListener: [Function: connectionListener],
mjolnir         |       METHODS: [Array],
mjolnir         |       STATUS_CODES: [Object],
mjolnir         |       Agent: [Function],
mjolnir         |       ClientRequest: [Function: ClientRequest],
mjolnir         |       IncomingMessage: [Function: IncomingMessage],
mjolnir         |       OutgoingMessage: [Function: OutgoingMessage],
mjolnir         |       Server: [Function: Server],
mjolnir         |       ServerResponse: [Function: ServerResponse],
mjolnir         |       createServer: [Function: createServer],
mjolnir         |       validateHeaderName: [Function: hidden],
mjolnir         |       validateHeaderValue: [Function: hidden],
mjolnir         |       get: [Function: get],
mjolnir         |       request: [Function: request],
mjolnir         |       maxHeaderSize: [Getter],
mjolnir         |       globalAgent: [Getter/Setter]
mjolnir         |     },
mjolnir         |     agentClass: [Function: Agent] { defaultMaxSockets: Infinity },
mjolnir         |     agent: Agent {
mjolnir         |       _events: [Object: null prototype],
mjolnir         |       _eventsCount: 2,
mjolnir         |       _maxListeners: undefined,
mjolnir         |       defaultPort: 80,
mjolnir         |       protocol: 'http:',
mjolnir         |       options: [Object],
mjolnir         |       requests: {},
mjolnir         |       sockets: [Object],
mjolnir         |       freeSockets: {},
mjolnir         |       keepAliveMsecs: 1000,
mjolnir         |       keepAlive: false,
mjolnir         |       maxSockets: Infinity,
mjolnir         |       maxFreeSockets: 256,
mjolnir         |       scheduling: 'fifo',
mjolnir         |       maxTotalSockets: Infinity,
mjolnir         |       totalSocketCount: 3,
mjolnir         |       [Symbol(kCapture)]: false
mjolnir         |     },
mjolnir         |     _started: true,
mjolnir         |     href: 'http://pantalaimon:8008/_matrix/client/r0/rooms/!gJaYOVoudshlAVfWFw%3Ahive-mind.network/send/m.reaction/1610915079252__REQ197',
mjolnir         |     req: <ref *3> ClientRequest {
mjolnir         |       _events: [Object: null prototype],
mjolnir         |       _eventsCount: 6,
mjolnir         |       _maxListeners: undefined,
mjolnir         |       outputData: [],
mjolnir         |       outputSize: 0,
mjolnir         |       writable: true,
mjolnir         |       destroyed: false,
mjolnir         |       _last: true,
mjolnir         |       chunkedEncoding: false,
mjolnir         |       shouldKeepAlive: false,
mjolnir         |       _defaultKeepAlive: true,
mjolnir         |       useChunkedEncodingByDefault: true,
mjolnir         |       sendDate: false,
mjolnir         |       _removedConnection: false,
mjolnir         |       _removedContLen: false,
mjolnir         |       _removedTE: false,
mjolnir         |       _contentLength: null,
mjolnir         |       _hasBody: true,
mjolnir         |       _trailer: '',
mjolnir         |       finished: true,
mjolnir         |       _headerSent: true,
mjolnir         |       _closed: false,
mjolnir         |       socket: [Socket],
mjolnir         |       _header: 'PUT /_matrix/client/r0/rooms/!gJaYOVoudshlAVfWFw%3Ahive-mind.network/send/m.reaction/1610915079252__REQ197 HTTP/1.1\r\n' +
mjolnir         |         'Authorization: Bearer REDACTED\r\n' +
mjolnir         |         'Content-Type: application/json\r\n' +
mjolnir         |         'host: pantalaimon:8008\r\n' +
mjolnir         |         'content-length: 122\r\n' +
mjolnir         |         'Connection: close\r\n' +
mjolnir         |         '\r\n',
mjolnir         |       _keepAliveTimeout: 0,
mjolnir         |       _onPendingData: [Function: noopPendingOutput],
mjolnir         |       agent: [Agent],
mjolnir         |       socketPath: undefined,
mjolnir         |       method: 'PUT',
mjolnir         |       maxHeaderSize: undefined,
mjolnir         |       insecureHTTPParser: undefined,
mjolnir         |       path: '/_matrix/client/r0/rooms/!gJaYOVoudshlAVfWFw%3Ahive-mind.network/send/m.reaction/1610915079252__REQ197',
mjolnir         |       _ended: true,
mjolnir         |       res: [Circular *2],
mjolnir         |       aborted: false,
mjolnir         |       timeoutCb: [Function: emitRequestTimeout],
mjolnir         |       upgradeOrConnect: false,
mjolnir         |       parser: null,
mjolnir         |       maxHeadersCount: null,
mjolnir         |       reusedSocket: false,
mjolnir         |       host: 'pantalaimon',
mjolnir         |       protocol: 'http:',
mjolnir         |       [Symbol(kCapture)]: false,
mjolnir         |       [Symbol(kNeedDrain)]: false,
mjolnir         |       [Symbol(corked)]: 0,
mjolnir         |       [Symbol(kOutHeaders)]: [Object: null prototype]
mjolnir         |     },
mjolnir         |     ntick: true,
mjolnir         |     timeoutTimer: null,
mjolnir         |     response: [Circular *2],
mjolnir         |     originalHost: 'pantalaimon:8008',
mjolnir         |     originalHostHeaderName: 'host',
mjolnir         |     responseContent: [Circular *2],
mjolnir         |     _destdata: true,
mjolnir         |     _ended: true,
mjolnir         |     _callbackCalled: true,
mjolnir         |     [Symbol(kCapture)]: false
mjolnir         |   },
mjolnir         |   toJSON: [Function: responseToJSON],
mjolnir         |   caseless: Caseless {
mjolnir         |     dict: {
mjolnir         |       'content-type': 'text/plain; charset=utf-8',
mjolnir         |       'content-length': '55',
mjolnir         |       date: 'Sun, 17 Jan 2021 20:24:39 GMT',
mjolnir         |       server: 'Python/3.8 aiohttp/3.7.3',
mjolnir         |       connection: 'close'
mjolnir         |     }
mjolnir         |   },
mjolnir         |   body: '500 Internal Server Error\n\nServer got itself in trouble',
mjolnir         |   [Symbol(kCapture)]: false,
mjolnir         |   [Symbol(RequestTimeout)]: undefined
mjolnir         | }
poljar commented 3 years ago

Are you sure this is the latest Pantalaimon? This seems to be fixed by https://github.com/matrix-org/pantalaimon/pull/85.

anonchuck commented 3 years ago

You're right, has been fixed by #85. I indeed wasn't running the latest version, sorry for the mistake!