Trying to deploy tutorial Forge app, but getting an error “Upsert Environment Request body is invalid. Details column “mappedScopes” does not exist”
The interesting thing is that this starts happening without changing manifest.yml
and if I start the new app then I get the same error for this app.
permissions:
scopes:
- 'write:jira-work'
- 'read:jira-work'
modules:
trigger:
- key: comment-issue-app-hello-world
function: main
events:
- avi:jira:created:issue
function:
- key: main
handler: index.run
app:
id: ari:cloud:ecosystem::app/28072cdc-6e91-4b4a-bf80-770bd3d0e5af
forge deploy --verbose
returns:
Validating manifest
Upload URL is valid
▶️ GraphQL https://api.atlassian.com/graphql
Query:
query forge_cli_getApplicationDeploymentStatus($appId: ID!, $environmentKey: String!, $id: ID!) {
appDeployment(appId: $appId, environmentKey: $environmentKey, id: $id) {
status
errorDetails {
code
message
fields
}
stages {
description
events {
__typename
stepName
createdAt
...on AppDeploymentLogEvent {
message
level
}
...on AppDeploymentSnapshotLogEvent {
message
level
}
... on AppDeploymentTransitionEvent {
newStatus
}
}
}
}
}
Variables: {
"appId": "ari:cloud:ecosystem::app/28072cdc-6e91-4b4a-bf80-770bd3d0e5af",
"environmentKey": "default",
"id": "8"
}
◀️ GraphQL
Request ID: d5e7a78febf70250
Result: {
"appDeployment": {
"status": "FAILED",
"errorDetails": {
"code": "ENVIRONMENT_UPDATE_VALIDATION_FAILED",
"message": "Manifest validation failed",
"fields": {
"validationResult": {
"tid": "d2a851682e8eb73e",
"code": 400,
"type": "UpsertEnvironmentRequestInvalidError",
"message": "Upsert Environment Request body is invalid. Details column \"mappedScopes\" does not exist"
}
}
},
"stages": [
{
"description": "Validating manifest",
"events": [
{
"__typename": "AppDeploymentTransitionEvent",
"stepName": "Init deployment",
"createdAt": "2021-11-11T09:04:56.147Z",
"newStatus": "STARTED"
},
{
"__typename": "AppDeploymentTransitionEvent",
"stepName": "Init deployment",
"createdAt": "2021-11-11T09:04:56.281Z",
"newStatus": "DONE"
},
{
"__typename": "AppDeploymentTransitionEvent",
"stepName": "Download manifest",
"createdAt": "2021-11-11T09:04:56.282Z",
"newStatus": "STARTED"
},
{
"__typename": "AppDeploymentLogEvent",
"stepName": "Download manifest",
"createdAt": "2021-11-11T09:04:56.283Z",
"message": "Upload URL is valid",
"level": "INFO"
},
{
"__typename": "AppDeploymentLogEvent",
"stepName": "Download manifest",
"createdAt": "2021-11-11T09:04:56.494Z",
"message": "Found manifest file",
"level": "INFO"
},
{
"__typename": "AppDeploymentLogEvent",
"stepName": "Download manifest",
"createdAt": "2021-11-11T09:04:56.509Z",
"message": "Manifest is a valid YAML",
"level": "INFO"
},
{
"__typename": "AppDeploymentTransitionEvent",
"stepName": "Download manifest",
"createdAt": "2021-11-11T09:04:56.511Z",
"newStatus": "DONE"
},
{
"__typename": "AppDeploymentTransitionEvent",
"stepName": "Validate manifest",
"createdAt": "2021-11-11T09:04:56.515Z",
"newStatus": "STARTED"
},
{
"__typename": "AppDeploymentLogEvent",
"stepName": "Validate manifest",
"createdAt": "2021-11-11T09:04:56.609Z",
"message": "Manifest validation failed\nValidation errors: {\n \"validationResult\": {\n \"tid\": \"d2a851682e8eb73e\",\n \"code\": 400,\n \"type\": \"UpsertEnvironmentRequestInvalidError\",\n \"message\": \"Upsert Environment Request body is invalid. Details column \\\"mappedScopes\\\" does not exist\"\n }\n}",
"level": "WARNING"
},
{
"__typename": "AppDeploymentTransitionEvent",
"stepName": "Validate manifest",
"createdAt": "2021-11-11T09:04:56.611Z",
"newStatus": "FAILED"
}
]
},
{
"description": "Snapshotting functions",
"events": []
},
{
"description": "Deploying to environment",
"events": []
}
]
}
}
Found manifest file
Manifest is a valid YAML
Manifest validation failed
Validation errors: {
"validationResult": {
"tid": "d2a851682e8eb73e",
"code": 400,
"type": "UpsertEnvironmentRequestInvalidError",
"message": "Upsert Environment Request body is invalid. Details column \"mappedScopes\" does not exist"
}
}
Error: Deployment failed
Error: Deployment failed
at ArtifactDeployer.handleErrorEvent (/Users/t1129/.nvm/versions/node/v12.14.1/lib/node_modules/@forge/cli/out/deploy/deployer/deployer.js:151:15)
at ArtifactDeployer.pollAndCheckEvents (/Users/t1129/.nvm/versions/node/v12.14.1/lib/node_modules/@forge/cli/out/deploy/deployer/deployer.js:61:18)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
at async ArtifactDeployer.monitorDeployment (/Users/t1129/.nvm/versions/node/v12.14.1/lib/node_modules/@forge/cli/out/deploy/deployer/deployer.js:72:28)
at async ArtifactDeployer.deploy (/Users/t1129/.nvm/versions/node/v12.14.1/lib/node_modules/@forge/cli/out/deploy/deployer/deployer.js:36:9)
at async PackageUploadDeployCommand.execute (/Users/t1129/.nvm/versions/node/v12.14.1/lib/node_modules/@forge/cli/out/deploy/package-upload-deploy.js:14:9)
at async CommandLineUI.displayProgress (/Users/t1129/.nvm/versions/node/v12.14.1/lib/node_modules/@forge/cli/node_modules/@forge/cli-shared/out/ui/command-line-ui.js:44:28)
at async DeployView.reportDeploymentProgress (/Users/t1129/.nvm/versions/node/v12.14.1/lib/node_modules/@forge/cli/out/command-line/view/deploy-view.js:50:24)
at async DeployController.run (/Users/t1129/.nvm/versions/node/v12.14.1/lib/node_modules/@forge/cli/out/command-line/controller/deploy-controller.js:122:27)
at async Command.actionProcessor (/Users/t1129/.nvm/versions/node/v12.14.1/lib/node_modules/@forge/cli/out/command-line/command.js:76:32)