Cloud agent api launch agent fail: {"code":"internal","message":"Error"}

Where does the bug appear (feature/product)?

Background Agent (GitHub, Slack, Web, Linear)

Describe the Bug

can you give me advice to launch successfully my agent?

I have linked cursor to github. the admin api, such as list github repo, list agents is be ok, but only the launch api throw error {“code”:“internal”,“message”:“Error”}.

my launch req:

curl --request POST \                                                

  --url https://api.cursor.com/v0/agents \

  -u my_appkey \

  --header 'Content-Type: application/json' \

  --data '{

  "prompt": {

    "text": "init the repo, add readme file"

  },

  "source": {

    "repository": "https://github.com/mycount/myrepo",

  }

}'

Steps to Reproduce

create a empty github repo and connect cursor to it. curl a launch api with req below:

curl --request POST \                                                

  --url https://api.cursor.com/v0/agents \

  -u my_appkey \

  --header 'Content-Type: application/json' \

  --data '{

  "prompt": {

    "text": "init the repo, add readme file"

  },

  "source": {

    "repository": "https://github.com/mycount/myrepo",

  }

}'

Screenshots / Screen Recordings

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.0.54
VSCode Version: 1.99.3
Commit: 7a31bffd467aa2d9adfda69076eb924e9062cb20

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report. It looks like the problem is a JSON syntax issue in your request body. There’s a trailing comma after the repository URL, which makes the JSON invalid.

Because of this trailing comma, the server rejects the request and returns the generic “internal error” message you’re seeing. Removing that comma should fix the issue.

Let me know if this resolves it!

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