# Unable to save cloud agent linked to Bitbucket

**URL:** <https://forum.cursor.com/t/unable-to-save-cloud-agent-linked-to-bitbucket/164091>\
**Category:** Bug Reports\
**Tags:** cloud-agents\
**Created:** [June 25, 2026, 3:06pm UTC](https://forum.cursor.com/t/unable-to-save-cloud-agent-linked-to-bitbucket/164091 "2026-06-25T15:06:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hagig](https://avatars.discourse-cdn.com/v4/letter/h/7cd45c/32.png) [@hagig](https://forum.cursor.com/u/hagig)\
**Post date:** [June 25, 2026, 3:06pm UTC](https://forum.cursor.com/t/unable-to-save-cloud-agent-linked-to-bitbucket/164091/1 "2026-06-25T15:06:59Z")

</div>

### Where does the bug appear (feature/product)?

Background Agent (GitHub, Slack, Web, Linear)

### Describe the Bug

After linking Bitbucket and setting up an environment, when I click the Save button, I see the following error:

Failed to resolve draft environment: 400 {“error”:{“message”:“Error”,“details”:[{“error”:“ERROR\_BAD\_REQUEST”,“details”:{“title”:“Bad Request”,“detail”:“repoConfig scm\_repo\_node\_id could not be resolved for [bitbucket.org/[repo]](http://bitbucket.org/%5Brepo%5D). Please ensure the GitHub/GitLab App is installed for this repository.”,“isRetryable”:false,“additionalInfo”:{},“buttons”:,“planChoices”:},“isExpected”:true}]}}

### Steps to Reproduce

Link Bitbucket, then spin up an agent on a project and once it’s up and running, hit save.

### Expected Behavior

It should save the environment

### Operating System

MacOS

### Version Information

Web interface

### Does this stop you from using Cursor

No - Cursor works, but with this issue

---

<div class="post-metadata">

**Author:** ![Colin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/colin/32/90452_2.png) [@Colin](https://forum.cursor.com/u/Colin)\
**Post date:** [June 25, 2026, 5:19pm UTC](https://forum.cursor.com/t/unable-to-save-cloud-agent-linked-to-bitbucket/164091/6 "2026-06-25T17:19:57Z")

</div>

Hey @hagig,

Thanks for reporting this! We’ve had two other reports of this. The integration is [currently in public beta](https://cursor.com/docs/integrations/bitbucket) so it’s very helpful to have these reports!

Unfortunately there’s no known workaround at the moment. I’ve attached your report to the existing bug ticket tracking this and can update you when progress is made!

---

<div class="post-metadata">

**Author:** ![Colin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/colin/32/90452_2.png) [@Colin](https://forum.cursor.com/u/Colin)\
**Post date:** [July 3, 2026, 12:34pm UTC](https://forum.cursor.com/t/unable-to-save-cloud-agent-linked-to-bitbucket/164091/11 "2026-07-03T12:34:57Z")

</div>

Hey @hagig!

This should be fixed now. Give it another try and let us know!

---

<div class="post-metadata">

**Author:** ![hagig](https://avatars.discourse-cdn.com/v4/letter/h/7cd45c/32.png) [@hagig](https://forum.cursor.com/u/hagig)\
**Post date:** [July 3, 2026, 6:37pm UTC](https://forum.cursor.com/t/unable-to-save-cloud-agent-linked-to-bitbucket/164091/12 "2026-07-03T18:37:50Z")

</div>

Confirmed it seems to work now! Thank you.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [July 5, 2026, 6:37pm UTC](https://forum.cursor.com/t/unable-to-save-cloud-agent-linked-to-bitbucket/164091/13 "2026-07-05T18:37:58Z")

</div>

Closed on July 5, 2026, 6:37pm UTC

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
