Open nbak opened 2 months ago
Got the same issue on Rocket.Chat 6.12.1
Subprocess stderr error: Uncaught (in promise) TypeError: Cannot create property 'logs' on string 'Result must exist for success Response objects'
data.logs = logger.getLogs();
^
at Module.errorResponse (file:///app/bundle/programs/server/npm/node_modules/@rocket.chat/apps-engine/deno-runtime/lib/messenger.ts:141:18)
at main (file:///app/bundle/programs/server/npm/node_modules/@rocket.chat/apps-engine/deno-runtime/main.ts:121:33)
at eventLoopTick (ext:core/01_core.js:183:11)
App implements IPostMessageSent. Permissions listed in app.json:
networking
,message.write
,persistence
,slashcommand
executePostMessageSent
```typescript async executePostMessageSent(message: IMessage, read: IRead, http: IHttp, persistence: IPersistence, modify: IModify): PromiseApplication log after message sent in chat
Using
this.getLogger().log
instead ofconsole.log
leaves no logs saved/printed. Callingmodify.getNotifier().notifyUser
in slash command works without errors.Message
Result must exist for success Response objects
seems to be from jsonrpc-lite, called from this line.Apps Engine version: 1.45.0
Issue present in Rocket.Chat versions 6.10.x, 6.11.x, 6.12.0, 6.12.1. In Rocket.Chat version 6.9.5 app works without errors.