I have a egdemicro plugin which runs without any issues when emg is running in a VM.
When emg is deployed to cloud foundry as an application, the plugin appears to be functioning fine despite getting the following errors:
Error: targetResponse closed at IncomingMessage.<anonymous> (/home/vcap/deps/0/node_modules/microgateway-core/lib/plugins-middleware.js:528:21) at IncomingMessage.emit (events.js:210:5) at IncomingMessage.<anonymous> (_http_client.js:368:14) at IncomingMessage.emit (events.js:215:7) at endReadableNT (_stream_readable.js:1183:12) at processTicksAndRejections (internal/process/task_queues.js:80:21)
Anyone knows what could be the possible cause of the error? and why target response close event is treated as an error condition in plugins-middleware.js?
I pulled the latest emg source today and noticed that the log level for the message has been corrected to 'info', that has resolved our issue: