Error Fix Library

A practical fix library for development failures that need more context than a generator can provide. Start from the symptom, confirm the likely cause, apply the smallest fix, then verify with a command or local test.

OpenAI OpenAI max_tokens vs max_completion_tokens Error

This error usually appears when a request body mixes parameters from different OpenAI model families. Validate JSON first, then align token fields with the target model.

Open fix
Nginx Nginx Redirect Loop Fix

Redirect loops happen when two layers keep sending the browser back and forth. The fix is to locate the layer producing each Location header.

Open fix
Docker Docker Compose Port Already Allocated Fix

A port allocation error means Docker cannot bind the host port requested in docker-compose.yml. Find what owns the port before changing random service config.

Open fix
PHP PHP Undefined Array Key Fix

Undefined array key warnings mean code reads a key that is not present. The fix is to check the data contract and handle missing values intentionally.

Open fix
JS JavaScript Failed to Fetch Fix

Failed to fetch is a browser-level failure. You need to inspect the Network tab and server headers before changing application state code.

Open fix
SEO robots.txt Disallow Mistakes Fix

A small Disallow rule can block valuable pages or rendering assets. Review robots.txt as a public crawl-control file, not a security layer.

Open fix
HTTP HTTP 403 vs 401 Fix

401 and 403 are both access failures, but they point to different checks. Debug the auth header, user permissions and proxy rules separately.

Open fix
JWT JWT Expired But Token Looks Valid Fix

A decoded JWT can look fine while still being expired, not yet valid, signed with the wrong key or meant for a different audience.

Open fix
JSON JSON Trailing Comma Error Fix

JSON is stricter than JavaScript object literals. Trailing commas, comments and single-quoted strings can break API requests and config files.

Open fix
Cron Cron Job Not Running Fix

Cron failures often come from environment differences rather than the command itself. Reproduce with the same shell, paths and user.

Open fix
CORS CORS Preflight Failed Fix

CORS preflight failures happen before your frontend receives a normal response. Debug the OPTIONS request and response headers first.

Open fix
Nginx Nginx 413 Request Entity Too Large Fix

A 413 response means a request body or upload is larger than a configured limit. Check every layer that receives the upload.

Open fix
Docker Docker No Space Left on Device Fix

Docker can fill disks with images, build cache, stopped containers, volumes and logs. Check usage before deleting data.

Open fix
Composer Composer Memory Exhausted Fix

Composer memory errors usually come from dependency solving, outdated Composer versions or PHP memory limits in CLI.

Open fix
PHP PHP Allowed Memory Size Exhausted Fix

PHP memory exhaustion means one request or command exceeded memory_limit. Raising the limit may hide inefficient code, so inspect the workload.

Open fix
npm npm ERR ERESOLVE Fix

ERESOLVE means npm cannot produce a dependency tree that satisfies peer dependency constraints. Read the conflicting packages before forcing install.

Open fix
Python Python ModuleNotFoundError Fix

ModuleNotFoundError usually means the code runs with a different Python interpreter or environment than the one where the package was installed.

Open fix
OpenAI OpenAI invalid_request_error Fix

invalid_request_error means the API understood the request but rejected its shape or parameters. Reduce to a minimal valid request first.

Open fix
JSON JSON Unexpected Token Error Fix

Unexpected token errors mean the parser found a character that is not valid at that position. Often the input is not JSON at all.

Open fix
SSL SSL Certificate Expired Fix

An expired certificate may be on the origin, CDN edge, www host or a forgotten subdomain. Check the exact host users visit.

Open fix
OpenAI OpenAI Context Length Exceeded Fix

Context length errors happen when the request input, instructions, tools and expected output exceed the model context window.

Open fix
OpenAI OpenAI response_format JSON Schema Fix

response_format errors usually mean the request JSON parses, but the structured-output schema does not match the API shape.

Open fix
OpenAI OpenAI 429 Rate Limit Fix

429 means requests are being limited by quota, rate, concurrency or burst behavior. Treat it as a control-flow problem, not a JSON problem.

Open fix
Nginx Nginx 502 Bad Gateway Fix

A 502 usually means Nginx reached a broken or unavailable upstream. Check the upstream service before changing redirect rules.

Open fix
Nginx Nginx 403 Forbidden Fix

A 403 from Nginx means the server understood the URL but refused to serve it. Start with root, index and permissions.

Open fix
Docker Docker Permission Denied /var/run/docker.sock Fix

Docker socket permission errors mean the current user or process cannot talk to the Docker daemon.

Open fix
Docker Docker Compose Service Unhealthy Fix

An unhealthy container is running but failing its healthcheck. Debug the healthcheck command and the service logs together.

Open fix
PHP PHP Class Not Found Fix

Class not found errors usually come from autoloading, namespaces, missing files or case-sensitive deployment differences.

Open fix
PHP PHP cURL Extension Missing Fix

PHP cURL errors often happen because CLI and web PHP use different builds or php.ini files.

Open fix
JS JavaScript Cannot Read Properties of Undefined Fix

This TypeError means code tried to read a property from undefined. Find why the value was missing before adding guards everywhere.

Open fix
CORS CORS No Access-Control-Allow-Origin Fix

This CORS error is enforced by the browser, but it is fixed on the API or proxy response, not in frontend fetch options alone.

Open fix
MySQL MySQL Access Denied Fix

MySQL access denied errors usually come from the wrong user, host, password, database grants or Docker environment mismatch.

Open fix
Git Git Permission Denied Publickey Fix

Git publickey errors mean SSH authentication failed before repository permissions could be used.

Open fix