# Forge Deployment Fails with Error

**URL:** <https://community.developer.atlassian.com/t/forge-deployment-fails-with-error/55037>\
**Category:** Forge\
**Tags:** forge-deploy, oauth\
**Created:** [January 12, 2022, 9:19pm UTC](https://community.developer.atlassian.com/t/forge-deployment-fails-with-error/55037 "2022-01-12T21:19:40Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![ByronSakiadis](https://avatars.discourse-cdn.com/v4/letter/b/aeb1de/32.png) [@ByronSakiadis](https://community.developer.atlassian.com/u/ByronSakiadis)\
**Post date:** [January 12, 2022, 9:19pm UTC](https://community.developer.atlassian.com/t/forge-deployment-fails-with-error/55037/1 "2022-01-12T21:19:40Z")

</div>

Hi, my Forge deploy Is failing with the following error:

```auto
Validating manifest
  Upload URL is valid
  Found manifest file
  Manifest is a valid YAML
  Manifest validation failed
Validation errors: {
  "validationResult": {
    "tid": "-",
    "code": 400,
    "type": "UpsertEnvironmentRequestInvalidError",
    "message": "Upsert Environment Request body is invalid. Details "
  }
}

```

My Manifest.yml is

```auto
modules:
  jira:issuePanel:
    - key: myco-gitlab-mr-extension-hello-world-panel
      function: main
      title: myco-gitlab-mr-extension
      icon: https://developer.atlassian.com/platform/forge/images/icons/issue-panel-icon.svg
  function:
    - key: main
      handler: index.run
      providers:
        auth:
          - gitlab
app:
  id: ari:cloud:ecosystem::app/-

remotes:
  - key: mycodev-gitlab-server
    baseUrl: https://cd.mycodev.com

permissions:
  scopes:
    - read:jira-work
  external:
    fetch:
      backend:
        - "https://cd.mycodev.com"

providers:
  auth:
    - key: gitlab
      name: Gitlab
      scopes:
        - 'profile'
        - 'read_api'
      type: oauth2
      clientId: 123456
      remotes:
        - mycodev-gitlab-server
      bearerMethod: authorization-header
      actions:
        authorization:
          remote: mycodev-gitlab-server
          path: /oauth/authorize
        exchange:
          remote: mycodev-gitlab-server
          path: /oauth/token
        revokeToken:
          remote: mycodev-gitlab-server
          path: /oauth/token
        retrieveProfile:
          remote: mycodev-gitlab-server
          path: /oauth2/v1/userinfo
          resolvers:
            id: id
            displayName: email
            avatarUrl: picture

```

---

<div class="post-metadata">

**Author:** ![paul](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/paul/32/37935_2.png) [@paul](https://community.developer.atlassian.com/u/paul)\
**Post date:** [January 13, 2022, 10:27pm UTC](https://community.developer.atlassian.com/t/forge-deployment-fails-with-error/55037/2 "2022-01-13T22:27:26Z")

</div>

We are also having this problem. Does anyone from Atlassian know what is going on?

---

<div class="post-metadata">

**Author:** ![CaterinaCurti](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/caterinacurti/32/42270_2.png) [@CaterinaCurti](https://community.developer.atlassian.com/u/CaterinaCurti)\
**Post date:** [January 14, 2022, 2:00am UTC](https://community.developer.atlassian.com/t/forge-deployment-fails-with-error/55037/4 "2022-01-14T02:00:20Z")

</div>

Hi @ByronSakiadis and @paul,

Can you try to wrap the `clientId` value with quotation marks and let us know if that’s still failing?

So like this from the example above:  
`clientId: '123456'`

@paul if you are not using an external provider so have a different field, let us know.

Thanks,  
Caterina

---

<div class="post-metadata">

**Author:** ![paul](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/paul/32/37935_2.png) [@paul](https://community.developer.atlassian.com/u/paul)\
**Post date:** [January 14, 2022, 2:56am UTC](https://community.developer.atlassian.com/t/forge-deployment-fails-with-error/55037/5 "2022-01-14T02:56:08Z")

</div>

Thanks for that Caterina, I’ll let my colleague know (@EmmanuelGilbert )

Regards  
Paul

---

<div class="post-metadata">

**Author:** ![nhac.tat.nguyen](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/nhac.tat.nguyen/32/39032_2.png) [@nhac.tat.nguyen](https://community.developer.atlassian.com/u/nhac.tat.nguyen)\
**Post date:** [January 14, 2022, 3:49am UTC](https://community.developer.atlassian.com/t/forge-deployment-fails-with-error/55037/6 "2022-01-14T03:49:57Z")

</div>

Hi @CaterinaCurti, I and my colleagues have the same problem, it has been there for a few days now:

 ![image](https://global.discourse-cdn.com/atlassiandeveloper/original/3X/1/3/136306e14887e8df1796571bc1a569e9c4a1f51a.png)

Our manifest:

```auto
modules:
  jira:adminPage:
    - key: admin-page
      resource: custom-ui-resource
      resolver:
        function: custom-ui-resolver
      title: Admin Page
      layout: basic
      displayConditions:
        isAdmin: true
  jira:issuePanel:
    - key: issue-panel
      resource: custom-ui-resource
      resolver:
        function: custom-ui-resolver
      title: Issue Panel
      icon: https://developer.atlassian.com/platform/forge/images/issue-panel-icon.svg
  function:
    - key: custom-ui-resolver
      handler: index.customUIResolver
resources:
  - key: custom-ui-resource
    path: static/build
    tunnel:
      port: 3000
permissions:
  scopes:
    - 'storage:app'
    - 'read:jira-work'
    - 'read:jira-user'
  content:
    styles:
      - 'unsafe-inline'
app:
  id: ari:cloud:ecosystem::app/xxxxxx-xxxx-xxxx-xxxx-xxxxxxx

```

---

<div class="post-metadata">

**Author:** ![CaterinaCurti](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/caterinacurti/32/42270_2.png) [@CaterinaCurti](https://community.developer.atlassian.com/u/CaterinaCurti)\
**Post date:** [January 14, 2022, 4:16am UTC](https://community.developer.atlassian.com/t/forge-deployment-fails-with-error/55037/7 "2022-01-14T04:16:52Z")

</div>

Thanks @nhac.tat.nguyen, yeah this cannot be related to the `clientId` field then.

Let me run a few checks and we’ll get back to you.

---

<div class="post-metadata">

**Author:** ![MateuszKorczyski](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/mateuszkorczyski/32/44391_2.png) [@MateuszKorczyski](https://community.developer.atlassian.com/u/MateuszKorczyski)\
**Post date:** [January 14, 2022, 6:52am UTC](https://community.developer.atlassian.com/t/forge-deployment-fails-with-error/55037/9 "2022-01-14T06:52:14Z")

</div>

Hi @CaterinaCurti,  
In my project, this problem occurs only when I add displayCondition in jira:projectSettingsPage. Manifest without displayCondition or with displayCondition in jira:issuePanel deploys the application without errors.

I tried to add issuePanel with key `issue-panel`. Results:

- With `displayCondition`: Error: Deployment failed
- Without `displayCondition`: ✔ Deployed

good luck with finding the cause!

---

<div class="post-metadata">

**Author:** ![nhac.tat.nguyen](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/nhac.tat.nguyen/32/39032_2.png) [@nhac.tat.nguyen](https://community.developer.atlassian.com/u/nhac.tat.nguyen)\
**Post date:** [January 14, 2022, 7:12am UTC](https://community.developer.atlassian.com/t/forge-deployment-fails-with-error/55037/10 "2022-01-14T07:12:16Z")

</div>

Hi @ByronSakiadis, @paul, @CaterinaCurti,

I can confirm that the deployment is success after I removed the `displayCondition` from my module, thanks to the suggestion from @MateuszKorczyski

Regards

---

<div class="post-metadata">

**Author:** ![IgorAndriushchenkp](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/igorandriushchenkp/32/41528_2.png) [@IgorAndriushchenkp](https://community.developer.atlassian.com/u/IgorAndriushchenkp)\
**Post date:** [January 15, 2022, 3:25pm UTC](https://community.developer.atlassian.com/t/forge-deployment-fails-with-error/55037/11 "2022-01-15T15:25:02Z")

</div>

Same problem, no `displayCondition` in the manifest, still fails.

---

<div class="post-metadata">

**Author:** ![EmmanuelGilbert](https://avatars.discourse-cdn.com/v4/letter/e/58956e/32.png) [@EmmanuelGilbert](https://community.developer.atlassian.com/u/EmmanuelGilbert)\
**Post date:** [January 16, 2022, 7:20pm UTC](https://community.developer.atlassian.com/t/forge-deployment-fails-with-error/55037/12 "2022-01-16T19:20:30Z")

</div>

Hi Caterina, there is no `clientId` in our `manifest.yml`. With a bit of trial and error we found that removing `viewportSize: xlarge` resolved the error.

---

<div class="post-metadata">

**Author:** ![CaterinaCurti](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/caterinacurti/32/42270_2.png) [@CaterinaCurti](https://community.developer.atlassian.com/u/CaterinaCurti)\
**Post date:** [January 17, 2022, 12:21am UTC](https://community.developer.atlassian.com/t/forge-deployment-fails-with-error/55037/13 "2022-01-17T00:21:51Z")

</div>

Hi @EmmanuelGilbert ,

Thanks for the details. Can you share which module was this for?

Caterina

---

<div class="post-metadata">

**Author:** ![CaterinaCurti](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/caterinacurti/32/42270_2.png) [@CaterinaCurti](https://community.developer.atlassian.com/u/CaterinaCurti)\
**Post date:** [January 17, 2022, 12:32am UTC](https://community.developer.atlassian.com/t/forge-deployment-fails-with-error/55037/14 "2022-01-17T00:32:16Z")

</div>

@IgorAndriushchenkp would it be possible to share the `manifest.yml` here as well as the output of the `forge deploy --verbose` command which shows the deployment Id before the error message?

It will look like this:

```auto
  Manifest is a valid YAML
  Manifest validation failed
Validation errors: {
  "validationResult": {
    "tid": "e2fc7cdecc388bd1",
    "code": 400,
    "type": "UpsertEnvironmentRequestInvalidError",
    "message": "Upsert Environment Request body is invalid. Details "
  }
}

```

Thanks,  
Caterina

---

<div class="post-metadata">

**Author:** ![CaterinaCurti](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/caterinacurti/32/42270_2.png) [@CaterinaCurti](https://community.developer.atlassian.com/u/CaterinaCurti)\
**Post date:** [January 17, 2022, 12:34am UTC](https://community.developer.atlassian.com/t/forge-deployment-fails-with-error/55037/15 "2022-01-17T00:34:09Z")

</div>

Thanks @MateuszKorczyski for this!

We are following up to understand what’s happening and I can confirm that I can reproduce it when using a `"jira:adminPage"` module with the `isAdmin` displayCondition.

Just to be sure, did it work previously in your environment and it stopped working recently or was this a recent change?

Thanks,  
Caterina

---

<div class="post-metadata">

**Author:** ![nhac.tat.nguyen](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/nhac.tat.nguyen/32/39032_2.png) [@nhac.tat.nguyen](https://community.developer.atlassian.com/u/nhac.tat.nguyen)\
**Post date:** [January 17, 2022, 3:09am UTC](https://community.developer.atlassian.com/t/forge-deployment-fails-with-error/55037/16 "2022-01-17T03:09:23Z")

</div>

> [@CaterinaCurti](#):
>
> Just to be sure, did it work previously in your environment and it stopped working recently or was this a recent change?

Hi @CaterinaCurti, It did work well previously (with the `isAdmin` there for a long time) and just stopped working recently, more than a week ago I would say.

Thanks for the investigating.

---

<div class="post-metadata">

**Author:** ![CaterinaCurti](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/caterinacurti/32/42270_2.png) [@CaterinaCurti](https://community.developer.atlassian.com/u/CaterinaCurti)\
**Post date:** [January 17, 2022, 9:56am UTC](https://community.developer.atlassian.com/t/forge-deployment-fails-with-error/55037/18 "2022-01-17T09:56:17Z")

</div>

Hi @nhac.tat.nguyen,

Thank YOU for all the details here.

We found a problem and a fix has been deployed. According to our tests, the deployment is working again.  
Can you try adding the `isAdmin` back and let us know if everything is working for you?

If anybody still see a problem or can confirm that everything is working again, please let us know.

Thanks,  
Caterina

---

<div class="post-metadata">

**Author:** ![IgorAndriushchenkp](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/igorandriushchenkp/32/41528_2.png) [@IgorAndriushchenkp](https://community.developer.atlassian.com/u/IgorAndriushchenkp)\
**Post date:** [January 17, 2022, 10:02am UTC](https://community.developer.atlassian.com/t/forge-deployment-fails-with-error/55037/19 "2022-01-17T10:02:39Z")

</div>

I can confirm, works well for me. Thanks for fixing it 🙂

---

<div class="post-metadata">

**Author:** ![jeffryan](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/jeffryan/32/41043_2.png) [@jeffryan](https://community.developer.atlassian.com/u/jeffryan)\
**Post date:** [January 17, 2022, 8:12pm UTC](https://community.developer.atlassian.com/t/forge-deployment-fails-with-error/55037/20 "2022-01-17T20:12:19Z")

</div>

We were encountering this forge deploy error also since last Wednesday. It is now working again after your fix with no changes from us. Thank you @CaterinaCurti

---

<div class="post-metadata">

**Author:** ![CaterinaCurti](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/caterinacurti/32/42270_2.png) [@CaterinaCurti](https://community.developer.atlassian.com/u/CaterinaCurti)\
**Post date:** [January 17, 2022, 11:42pm UTC](https://community.developer.atlassian.com/t/forge-deployment-fails-with-error/55037/21 "2022-01-17T23:42:40Z")

</div>

Thanks for confirming that. The timeline matches what we also saw internally.
