Freshservice Serverless app renderData hangs

  1. On installing freshservice custom app, we are doing a validation inside onAppInstallHandler. If the validation fails, we call renderData({message: "Installation failed due to incorrect Lansweeper API key."});
  2. On installation, the validation is being done and error message is displayed. But after that the installation process seems to hang, the loader is shown indefinitely and the user is not able to try installing again.

Please help with how to resolve this, thanks.