RocketChat / Rocket.Chat.Apps-engine

The Rocket.Chat Apps engine and definitions.

Home Page:https://rocketchat.github.io/Rocket.Chat.Apps-engine/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] Cannot deploying apps: write after end

cuonghuunguyen opened this issue · comments

When deploy/updating apps by Rocket.Chat/Apps-CLI, the console shows the error write after end without any logs from server side.
image

Additional information:

  • RC: 5.4.1
  • rc-cli: rocket.chat/apps-cli/1.10.1 wsl-x64 node-v14.21.1
  • Apps-Engine version: latest

hi, any updates abt this issue? it seems to be a critical bug for apps developers

Hi! Is this code public?

I indeed noticed some situations with different error messages, or sometimes the code not being executed and no errors showing, but I forgot to note the code or isolate it to create a reproducible environment to handle over to the apps engine devs.

And now I can't produce this errors again :)

yes, could you have a look at my Birthday app in my repo list?

Any updates on this issue?

The error happened in getUploadFormData.ts and this line

const bb = busboy({ headers: request.headers, defParamCharset: 'utf8', limits });

Seems to be a bug from vm2 implementation

@cuonghuunguyen would you mind trying to reproduce this again on the latest version (6.1.4)?
We had some improvements to vm2 and fixed some other apps related errors. Hope the experience is better now

sure, will inform you as soon as I have the result

image
image
Still reproducable.
Rocket.Chat 6.1.5 Community edition Docker installation

Investigated and found the problem, the vm2 will cause the memory leak when running axios.