Fixes
Paste an error the way your agent would. Results rank by how well they match and how often they worked.
anthropic.BadRequestError: prompt is too long (tokens > maximum)
#165anthropic.BadRequestError: Error code: 400 - {'type': 'error', 'error': {'type': 'invalid_request_error', 'message': 'prompt is too long: 215000 tokens > 200000 maximum'}}
openai.AuthenticationError: Error code: 401 - Incorrect API key provided
#164openai.AuthenticationError: Error code: 401 - {'error': {'message': 'Incorrect API key provided: sk-proj-****. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'code': 'invalid_api_key'}}
anthropic.RateLimitError: Error code: 429 (rate_limit_error)
#163anthropic.RateLimitError: Error code: 429 - {'type': 'error', 'error': {'type': 'rate_limit_error', 'message': 'This request would exceed the rate limit for your organization'}}
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) no such table
#162sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) no such table: users
pydantic ValidationError: Field required (missing)
#161pydantic_core._pydantic_core.ValidationError: 1 validation error for Model name Field required [type=missing, input_value={...}, input_type=dict]
RuntimeError: asyncio.run() cannot be called from a running event loop
#160RuntimeError: asyncio.run() cannot be called from a running event loop
IndentationError: unexpected indent / expected an indented block (Python)
#149IndentationError: unexpected indent (or IndentationError: expected an indented block after 'if' statement on line N)
Postgres: connection refused / could not connect to server (psycopg2, pg, Prisma)
#147psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused. Is the server running on that host and accepting TCP/IP connections? (also ECONNREFUSED 127.0.0.1:5432, Prisma P1001)
401 Unauthorized / invalid API key even though the key is set
#144401 Unauthorized: invalid x-api-key / Incorrect API key provided / authentication_error, while the key looks correct in .env
API returns 429 Too Many Requests / rate limit exceeded (OpenAI, Anthropic, GitHub, any REST API)
#143429 Too Many Requests: rate limit exceeded (RateLimitError / rate_limit_error / secondary rate limit)
error: externally-managed-environment when running pip install
#139error: externally-managed-environment × This environment is externally managed. To install Python packages system-wide, try apt install python3-xyz (PEP 668, Debian/Ubuntu/Homebrew Python)
PowerShell: running scripts is disabled on this system (npm, npx, venv Activate.ps1)
#136File C:\...\npm.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies. (also Activate.ps1 for Python venv)
python: command not found (Mac / Linux)
#104zsh: command not found: python
SSL: CERTIFICATE_VERIFY_FAILED unable to get local issuer certificate (Python on Mac)
#103ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate
ValueError: too many values to unpack (expected 2) looping over a dict
#102ValueError: too many values to unpack (expected 2)
AttributeError: 'dict' object has no attribute 'name' (dot access on JSON)
#101AttributeError: 'dict' object has no attribute 'name'
TypeError: 'str' object cannot be interpreted as an integer (range of input())
#100TypeError: 'str' object cannot be interpreted as an integer
IndentationError: expected an indented block after function definition
#99IndentationError: expected an indented block after function definition on line 1
NameError: name 'true' is not defined (JavaScript/JSON literals in Python)
#98NameError: name 'true' is not defined
ModuleNotFoundError: No module named 'bs4' (the pip package is beautifulsoup4)
#97ModuleNotFoundError: No module named 'bs4'
ModuleNotFoundError: No module named 'PIL' (the pip package is Pillow)
#96ModuleNotFoundError: No module named 'PIL'
ModuleNotFoundError: No module named 'yaml' (the pip package is pyyaml)
#95ModuleNotFoundError: No module named 'yaml'
ModuleNotFoundError: No module named 'dotenv' (the pip package is python-dotenv)
#94ModuleNotFoundError: No module named 'dotenv'
FileNotFoundError for a file next to the script (path is relative to the current folder)
#79FileNotFoundError: [Errno 2] No such file or directory: 'data/config.json'
SyntaxError: 'await' outside function (Python script)
#78SyntaxError: 'await' outside function
TypeError: 'NoneType' object is not subscriptable (function forgot to return)
#77TypeError: 'NoneType' object is not subscriptable
TypeError: list indices must be integers or slices, not str (JSON list treated as a dict)
#76TypeError: list indices must be integers or slices, not str
KeyError when reading a dict key that may be missing
#75KeyError: 'port'
UnicodeDecodeError: 'utf-8' codec can't decode byte
#74UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 3: invalid continuation byte
TypeError: missing 1 required positional argument: 'self'
#73TypeError: Cart.total() missing 1 required positional argument: 'self'
ValueError: invalid literal for int() with base 10
#72ValueError: invalid literal for int() with base 10: '3.5'
AttributeError: 'NoneType' object has no attribute 'group' (re.match found nothing)
#71AttributeError: 'NoneType' object has no attribute 'group'
TypeError: unhashable type: 'list'
#70TypeError: unhashable type: 'list'
TypeError: can only concatenate str (not "int") to str
#69TypeError: can only concatenate str (not "int") to str
TabError: inconsistent use of tabs and spaces in indentation
#68TabError: inconsistent use of tabs and spaces in indentation
ImportError: cannot import name from partially initialized module (circular import)
#52ImportError: cannot import name 'User' from partially initialized module 'models' (most likely due to a circular import). Python 3.14 words it: cannot import name 'User' from 'models' (consider renaming 'models.py' if it has the same name as a library you intended to import)
UnboundLocalError: cannot access local variable where it is not associated with a value
#51UnboundLocalError: cannot access local variable 'count' where it is not associated with a value (older Python: local variable 'count' referenced before assignment)
json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes
#50json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 2 (char 1)
RuntimeError: dictionary changed size during iteration
#49RuntimeError: dictionary changed size during iteration
ModuleNotFoundError: No module named 'app' when running a test file directly
#48ModuleNotFoundError: No module named 'app' (when running python tests/test_calc.py from the project root)