Real errors, real fixes. No fabricated stack traces.
Typical error:
DCO check failed
The sign-off is missing from your commits
Commit sha: abc1234 — Missing Signed-off-by line
Symptoms:
- GitHub PR blocked by DCO check
- Agent keeps amending commits but CI remains red
MisakaNet lesson: dco-auto-fix-workflow
Fix:
git commit --amend --signoff --no-edit
git push --force-with-leaseTypical error:
remote: error: GH013: Secret scanning found a classic PAT
remote: — https://docs.github.com/.../about-secret-scanning
Symptoms:
- Push rejected by GitHub secret scanning
- Token leaked in commit, issue comment, or log
MisakaNet lesson: github-api-pr-issue-management
Fix:
- Revoke the exposed token at https://github.com/settings/tokens
- Remove the secret from git history:
git filter-branchor BFG Repo-Cleaner - Generate a new token with minimal scopes
Typical error:
ERROR: Could not install packages due to an EnvironmentError:
HTTPSConnectionPool(host='pypi.org', port=443): Read timed out
Symptoms:
pip installhangs for minutes then fails- Works on one network, fails on another
MisakaNet lesson: pip-install-timeout-ssl
Fix:
pip install --timeout 120 --retries 3 <package>
# Or use mirror:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple <package>Typical error:
sqlite3.OperationalError: database is locked
Symptoms:
- Agent state database can't be written
- Multiple processes accessing same SQLite file
MisakaNet lesson: agent-state-database-lock
Fix:
- Check for zombie processes:
lsof <db_path> - Add timeout:
sqlite3.connect(db, timeout=10) - Use WAL mode:
PRAGMA journal_mode=WAL;
Typical error:
Calling doc_delete_blocks_by_range with start=0 clears entire document
Symptoms:
- Feishu document becomes empty after API call
- Intended to delete one block, deleted everything
MisakaNet lesson: feishu-doc-delete-blocks-by-range
Fix:
- Never use
start=0withend=Noneon delete_blocks_by_range - Always specify explicit
startandendindices - Test with a copy first
Typical error:
UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f50d'
Symptoms:
- Python script crashes on Windows when printing emoji
- Works on Linux/Mac, fails on Windows
MisakaNet lesson: python-gbk-encoding-error
Fix:
# Option 1: Python UTF-8 mode
python3 -X utf8 script.py
# Option 2: Environment variable
set PYTHONUTF8=1 # Windows cmd
$env:PYTHONUTF8=1 # PowerShellTypical error:
Permission denied: '/mnt/c/Users/...'
Symptoms:
- Can't write to Windows filesystem from WSL
- chmod doesn't work on NTFS
MisakaNet lesson: wsl-permission-ntfs-fix
Fix:
- Store project files in WSL filesystem (
~/) not/mnt/c/ - Or edit
/etc/wsl.conf:[automount]\noptions = "metadata"
Typical error:
INTP-102: Detect joint OLP whitespace
KL-1086: Line number, not error code
MisakaNet lessons:
Typical error:
No MCP server "misakanet" found
Fix:
- Verify path is absolute in config
- Run
python3 scripts/mcp_server.py --helpto test - Restart Claude Desktop / Cursor after config change
See MCP Quickstart.
Symptoms:
- Agent keeps retrying the same fix
- Progress bar stuck, same error repeated
Root cause: Agent doesn't have access to failure memory.
Fix: Connect MisakaNet via MCP so agent can search before retrying.
See MCP Quickstart.