pm2-io-js-api icon indicating copy to clipboard operation
pm2-io-js-api copied to clipboard

start/stop pm2 actions don't work

Open bjovanovic84 opened this issue 2 months ago • 0 comments

I'm trying to control a remote app (start and stop) and it doesn't work as expected, here is a sample:

const pm2io = new PM2IO();
pm2io.use('standalone', { refresh_token: 'foo-token' });
const response = await pm2io.actions.triggerPM2Action('bar-bucket', {
  server_name: 'foo-server',
  app_name: 'bar-app,
  method_name: 'stop',
});
console.log('Response:', response.data);

The code ^ runs w/o issues and the returned data indicates success ({ success: true }), but the operations are not getting executed. Sending restart with the example ^ works w/o issues, it's only start/stop that are not responsive

bjovanovic84 avatar Sep 16 '25 10:09 bjovanovic84