{
  "id": "errors",
  "name": "Errors",
  "path": "/errors/",
  "question": "Find an error by its message",
  "description": "Error names are not explanations. Each entry starts from the exact text a program or tool returns and narrows the cause to a path, a permission, a state, or an encoding.",
  "entries": [
    {
      "id": "errors/eacces-path-traversal",
      "title": "EACCES During Path Traversal",
      "url": "https://www.fieldnotely.xyz/errors/eacces-path-traversal/",
      "summary": "EACCES means the kernel could not traverse the path because some directory component lacks search (x) permission for your effective user, or the final file lacks the requested access; the error does not identify the component. Check every ancestor with namei -l and inspect modes, ACLs, and mount options rather than only the leaf file.",
      "aliases": [
        "Permission denied path component",
        "EACCES namei",
        "directory lacks execute permission"
      ],
      "kind": "qa",
      "topic": "filesystem",
      "scope": "POSIX-like systems; Unix permissions and ACLs",
      "updated": "2026-11-29"
    },
    {
      "id": "errors/enoent-relative-paths",
      "title": "ENOENT and Relative Paths",
      "url": "https://www.fieldnotely.xyz/errors/enoent-relative-paths/",
      "summary": "A relative path is resolved against the calling process's current working directory, so it works in the shell but fails in a program that a service manager, IDE, or cron started somewhere else. Anchor the path to the script's own directory or another absolute location instead of relying on the launcher's directory.",
      "aliases": [
        "ENOENT no such file or directory",
        "relative path works in shell but not in program",
        "FileNotFoundError wrong working directory"
      ],
      "kind": "qa",
      "topic": "filesystem",
      "scope": "POSIX-like systems; Node.js, Python, and shell examples",
      "updated": "2026-11-29"
    },
    {
      "id": "errors/python-unicode-decode-error",
      "title": "Reading a Python UnicodeDecodeError",
      "url": "https://www.fieldnotely.xyz/errors/python-unicode-decode-error/",
      "summary": "UnicodeDecodeError names the codec, the offending byte, and its zero-based position; the usual causes are a wrong encoding assumption, a truncated multi-byte sequence, or binary data. Read exc.encoding, exc.object, exc.start, exc.end, and exc.reason, inspect the bytes around the failure, then decode with the encoding the data actually uses.",
      "aliases": [
        "UnicodeDecodeError invalid continuation byte",
        "invalid start byte position",
        "python decode error which byte"
      ],
      "kind": "qa",
      "topic": "encoding",
      "scope": "Python 3; files, sockets, and subprocess output",
      "updated": "2026-11-29"
    },
    {
      "id": "errors/git-non-fast-forward-push",
      "title": "Why Git Rejects a Non-Fast-Forward Push",
      "url": "https://www.fieldnotely.xyz/errors/git-non-fast-forward-push/",
      "summary": "A non-fast-forward rejection means the remote branch contains commits your local branch does not have, so the update would discard them; fetch and integrate the remote work, then push. Force-push only on branches you control, and prefer --force-with-lease over --force.",
      "aliases": [
        "non-fast-forward",
        "git push rejected tip behind",
        "force-with-lease"
      ],
      "kind": "qa",
      "topic": "git",
      "scope": "Git 2.x; shared branches and remotes",
      "updated": "2026-11-29"
    }
  ]
}
