Nutlope / aicommits

A CLI that writes your git commit messages for you with AI
https://www.npmjs.com/package/aicommits
MIT License
7.77k stars 366 forks source link

Timeout Error in aicommits v1.11.0 on Large File Commit #264

Closed HashCookie closed 8 months ago

HashCookie commented 8 months ago

Bug description

When attempting to commit a large number of files using aicommits v1.11.0, I encountered a timeout error. The process begins normally, but fails during the "Changes analyzed" phase, displaying a Node.js network-related error.

Expected Behavior: The commit process should handle a large number of files without timing out. Actual Behavior: The process times out and fails with a Node.js error.

image

aicommits version

version: v1.11.0

Environment

System:
    OS: macOS 14.2
    CPU: (8) arm64 Apple M2
    Memory: 108.36 MB / 8.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 21.4.0 - /opt/homebrew/bin/node
    Yarn: 1.22.19 - /opt/homebrew/bin/yarn
    npm: 10.2.4 - /opt/homebrew/bin/npm
    pnpm: 8.6.10 - /opt/homebrew/bin/pnpm

Can you contribute a fix?

HashCookie commented 8 months ago

Already resolved, it is because the proxy was not set: aicommits config set proxy=.