Is there any way to get insight into why a forge deploy
fails? I have written a small Forge app and after adding and importing the googleapis
package deployments fail (forge version 0.27.0).
I have tried to run forge deploy --verbose
which leads to the following log (failure at Snapshotting functions stage) but does not really provide more insight:
... (removed successful log events)
{
"__typename": "AppDeploymentTransitionEvent",
"stepName": "Validate manifest",
"createdAt": "2020-12-22T08:02:09.571Z",
"newStatus": "DONE"
}
]
},
{
"description": "Snapshotting functions",
"events": [
{
"__typename": "AppDeploymentTransitionEvent",
"stepName": "Generate snapshot step",
"createdAt": "2020-12-22T08:02:09.572Z",
"newStatus": "STARTED"
},
{
"__typename": "AppDeploymentLogEvent",
"stepName": "Generate snapshot step",
"createdAt": "2020-12-22T08:02:19.484Z",
"message": "Deployment failed with unknown error",
"level": "ERROR"
},
{
"__typename": "AppDeploymentTransitionEvent",
"stepName": "Generate snapshot step",
"createdAt": "2020-12-22T08:02:19.485Z",
"newStatus": "FAILED"
}
]
},
{
"description": "Deploying to environment",
"events": []
}
]
}
}
Deployment failed with unknown error
Error: Deployment failed
Error: Deployment failed
at ArtifactDeployer.handleErrorEvent (/usr/local/lib/node_modules/@forge/cli/out/deploy/deployer/deployer.js:135:15)
at ArtifactDeployer.pollAndCheckEvents (/usr/local/lib/node_modules/@forge/cli/out/deploy/deployer/deployer.js:61:18)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async ArtifactDeployer.monitorDeployment (/usr/local/lib/node_modules/@forge/cli/out/deploy/deployer/deployer.js:72:28)
at async ArtifactDeployer.deploy (/usr/local/lib/node_modules/@forge/cli/out/deploy/deployer/deployer.js:36:9)
at async PackageUploadDeployCommand.execute (/usr/local/lib/node_modules/@forge/cli/out/deploy/package-upload-deploy.js:14:9)
at async CommandLineUI.displayProgress (/usr/local/lib/node_modules/@forge/cli/node_modules/@forge/cli-shared/out/ui/command-line-ui.js:44:28)
at async DeployView.reportDeploymentProgress (/usr/local/lib/node_modules/@forge/cli/out/command-line/view/deploy-view.js:31:24)
at async DeployController.run (/usr/local/lib/node_modules/@forge/cli/out/command-line/controller/deploy-controller.js:58:27)
at async Command.actionProcessor (/usr/local/lib/node_modules/@forge/cli/out/command-line/command.js:60:32)
I wonder if this is due to beta limitations e.g. unsupported built-in Node modules. Would Forge fail at the snapshotting functions stage if it fails due to unsupported Node modules or would that rather be a runtime error?