Can not deploy Forge app - Throws UpsertEnvironment RequestInvalidError

Hello,

Im this error from nowhere. Did not changed the manifest.yml.
See this topic as a reference: Forge Deploy returns Upsert Environment RequestInvalid Error

My Forge CLI Version is 2.0.6

Variables: {
  "appId": "ari:cloud:ecosystem::app/b66db903-781e-4812-a2ec-5efbdb82324a",
  "environmentKey": "default",
  "id": "45"
}
  ◀️  GraphQL
Request ID: d042551f57d7afc1
Result: {
  "appDeployment": {
    "status": "FAILED",
    "errorDetails": {
      "code": "ENVIRONMENT_UPDATE_VALIDATION_FAILED",
      "message": "Manifest validation failed",
      "fields": {
        "validationResult": {
          "tid": "1c5a28a5bbe9aeb3",
          "code": 400,
          "type": "UpsertEnvironmentRequestInvalidError",
          "message": "Upsert Environment Request body is invalid. Details "
        }
      }
    },
    "stages": [
      {
        "description": "Validating manifest",
        "events": [
          {
            "__typename": "AppDeploymentTransitionEvent",
            "stepName": "Init deployment",
            "createdAt": "2022-01-13T09:20:02.217Z",
            "newStatus": "STARTED"
          },
          {
            "__typename": "AppDeploymentTransitionEvent",
            "stepName": "Init deployment",
            "createdAt": "2022-01-13T09:20:02.618Z",
            "newStatus": "DONE"
          },
          {
            "__typename": "AppDeploymentTransitionEvent",
            "stepName": "Download manifest",
            "createdAt": "2022-01-13T09:20:02.619Z",
            "newStatus": "STARTED"
          },
          {
            "__typename": "AppDeploymentLogEvent",
            "stepName": "Download manifest",
            "createdAt": "2022-01-13T09:20:02.621Z",
            "message": "Upload URL is valid",
            "level": "INFO"
          },
          {
            "__typename": "AppDeploymentLogEvent",
            "stepName": "Download manifest",
            "createdAt": "2022-01-13T09:20:03.103Z",
            "message": "Found manifest file",
            "level": "INFO"
          },
          {
            "__typename": "AppDeploymentLogEvent",
            "stepName": "Download manifest",
            "createdAt": "2022-01-13T09:20:03.122Z",
            "message": "Manifest is a valid YAML",
            "level": "INFO"
          },
          {
            "__typename": "AppDeploymentTransitionEvent",
            "stepName": "Download manifest",
            "createdAt": "2022-01-13T09:20:03.123Z",
            "newStatus": "DONE"
          },
          {
            "__typename": "AppDeploymentTransitionEvent",
            "stepName": "Validate manifest",
            "createdAt": "2022-01-13T09:20:03.125Z",
            "newStatus": "STARTED"
          },
          {
            "__typename": "AppDeploymentLogEvent",
            "stepName": "Validate manifest",
            "createdAt": "2022-01-13T09:20:03.358Z",
            "message": "Manifest validation failed\nValidation errors: {\n  \"validationResult\": {\n    \"tid\": \"1c5a28a5bbe9aeb3\",\n    \"code\": 400,\n    \"type\": \"UpsertEnvironmentRequestInvalidError\",\n    \"message\": \"Upsert Environment Request body is invalid. Details \"\n  }\n}",
            "level": "WARNING"
          },
          {
            "__typename": "AppDeploymentTransitionEvent",
            "stepName": "Validate manifest",
            "createdAt": "2022-01-13T09:20:03.360Z",
            "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": "1c5a28a5bbe9aeb3",
    "code": 400,
    "type": "UpsertEnvironmentRequestInvalidError",
    "message": "Upsert Environment Request body is invalid. Details "
  }
}

Error: Deployment failed
4 Likes

Hi @anon72326184, I’ve contacted a a team that was handling the fix in the reference topic you mentioned. I’ll get back to you as soon as I get any update

Paweł

Hi @anon72326184,

I believe this issue has been resolved at the time of writing this. Are you able to try again and let me know if you are still experiencing this issue?

Thanks!

Angus

Hello guys,

thanks for the fix :slight_smile: it works now

2 Likes