Failed to generate commit message: [resource_exhausted] Error

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

When trying to generate a commit message in Cursor IDE, an error appears:
Failed to generate commit message: [resource_exhausted] Error.
This prevents the IDE from generating commit messages automatically.

Steps to Reproduce

  1. Open a project in Cursor IDE.
  2. Make some changes to files.
  3. Click on “Generate Commit Message” (AI commit message feature).
  4. This prevents the IDE from generating commit messages automatically.

Expected Behavior

Cursor IDE should successfully generate an AI commit message without showing any error.

Screenshots / Screen Recordings

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.6.45
VSCode Version: 1.99.3
Commit: 3ccce8f55d8cca49f6d28b491a844c699b8719a0
Date: 2025-09-22T18:22:38.013Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Darwin arm64 25.0.0

Additional Information

I’m currently using the free plan of Cursor IDE.

Does this stop you from using Cursor

No - Cursor works, but with this issue

1 Like

Hey, sorry about this!

On occasion, the model providers we use for these features can occasionally run out of available capacity.
With most features, we usually fall back to an alternative provider of a model, but it looks like that may not have happened here correctly!

I’ve logged this for the team to look into, but this should have already resolved as capacity is likely available again!

I have also been getting a commit message error since yesterday. Is this related?

image

hi @duxyz yes this is related as Commit message is generated by AI. Likely a temporary issue.

Thanks!
It’s been three days now, and it still doesn’t work; it just won’t generate the commit message, even after updating Cursor to the latest version. What should I do?

@danperks @condor I’ve been using Cursor and at some point I created several pro trial accounts. After that, I started receiving the “So many pro trial accounts” message. Now, when I try to generate a commit message, I get the following error:

Failed to generate commit message: [resource_exhausted] Error

I suspect the error might be related to my usage of multiple pro trial accounts. Could you please advise me on what I should do so that this feature works again on my side?

Thank you for your support.

Hey, what error are you seeing?

image

This little message pops up!

1 Like

Thanks for the info, the team is already looking into this.

1 Like

I just tested on another project, and there it is generating a commit message normally.

So, something got messed up only on my current project. What can I do to reset and regain the ability to generate a commit message?

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

I can not generate commit messages, every time I click the “Generate Commit Message” button, I get the error message “Failed to generate commit message: No contents found”. I tried reinstall git & cursor but still get this same message. I’m using Windows 10 LTSC system.

Steps to Reproduce

stash some files and click the “Generate Commit Message” button

Screenshots / Screen Recordings

Snipaste_2025-10-05_21-48-47.png

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.7.33 (system setup)
VSCode Version: 1.99.3
Commit: a84f941711ad680a635c8a3456002833186c4840
Date: 2025-10-03T03:28:06.574Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.19044

Does this stop you from using Cursor

No - Cursor works, but with this issue

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

This Failed to generate commit message: [invalid_argument] Error error has been going on across a number of versions now whenever I click on the “Generate Commit Message” button. It never works anymore.

Steps to Reproduce

  1. Stage some files to git
  2. Under the “Source Control” tab, click “Generate Commit Message”

Expected Behavior

It should generate me a commit message based on all my changed files.

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.7.53
VSCode Version: 1.99.3
Commit: ab6b80c19b51fe71d58e69d8ed3802be587b3410
Date: 2025-10-20T19:15:58.572Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.6.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

any updates @deanrie ?

Been having the same issue for multiple weeks now. Tried pretty much everything, logging out, reinstalling, deleting the cache folder… Nothing worked.

Screenshot 2025-10-29 at 18.44.50

1 Like

I also encountered the same problem. Has it been solved?

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Hi, I can’t generate commit anymore and face this error for a while now: Failed to generate commit message: [invalid_argument] Error

It as working fine a few weeks ago

Steps to Reproduce

Have files staged and click on Generate commit message button

Expected Behavior

generate a commit message based on modified files content

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.0.77
VSCode Version: 1.99.3
Commit: ba90f2f88e4911312761abab9492c42442117cf0
Date: 2025-11-13T23:10:43.113Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 24.6.0

For AI issues: which model did you use?

default

For AI issues: add Request ID with privacy disabled

N/A

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey what is the resolution of this issue Failed to generate commit message: [invalid_argument] Error @deanrie
I am getting this since last week

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