Skip to content

Error Report: 2026-02-20 (123 errors in last 24h) #280

@claude

Description

@claude

Summary

No critical CLI bugs found. Most errors are user configuration issues (running commands outside project directories, missing dependencies) or backend deployment timeouts. Two areas need attention: EPIPE errors during authentication and authentication timeouts.

Metric Value
Time range last 24 hours
Total errors 123
CLI bugs 1
Backend issues 3
User errors (working as designed) 5
Unique users affected 58
Internal user occurrences 18

Errors requiring action

1. Authentication flow broken pipe errors — CLI bug

Error code None
Occurrences 10 (0 internal)
Users affected 8
Command whoami
Platforms Windows
PostHog View in error tracking
Existing issue None
Recurring No

Error: (from PostHog — the actual error message users see)

Error: EPIPE: broken pipe, write

Stack trace: (only show frames from src/ — skip generic entry points like runCLI, parseAsync)

at login (src/cli/commands/auth/login-flow.ts:104:16)
at waitForAuthentication (src/cli/commands/auth/login-flow.ts:45:4)

Root cause: (what you found in the code — include a code snippet)

// src/cli/commands/auth/login-flow.ts:45
try {
  await runTask(
    "Waiting for authentication...",
    async () => {
      await pWaitFor(
        async () => {
          const result = await getTokenFromDeviceCode(deviceCode);
          if (result !== null) {
            tokenResponse = result;
            return true;
          }
          return false;
        },
        {
          interval: interval * 1000,
          timeout: expiresIn * 1000,
        },
      );
    },
    {
      successMessage: "Authentication completed!",
      errorMessage: "Authentication failed",
    },
  );
} catch (error) {
  if (error instanceof Error && error.message.includes("timed out")) {
    throw new Error("Authentication timed out. Please try again.");
  }
  throw error;
}

The EPIPE error occurs during the authentication polling process, likely when the user cancels the process and the stdout stream becomes unavailable, but the CLI continues trying to write status updates.

Suggested fix: Add EPIPE error handling in the login flow to gracefully handle cancelled authentication attempts and avoid throwing unhandled pipe errors.


Backend issues (not CLI fixes)

Brief table of errors caused by the backend/server, not the CLI:

Error Occurrences Users Command PostHog
Function deployment timeouts 23 16 functions deploy link
Backend Platform availability errors 8 6 deploy, entities push link
Site deployment errors 2 2 deploy link

These are not CLI bugs but may need backend team attention. Function deployment timeouts ("wait_for_deployment timed out after 90 seconds") and Backend Platform availability errors ("only available for Backend Platform apps") suggest server-side infrastructure issues.

User errors (working as designed)

Brief table of expected user errors where the CLI validation is correct:

Error Occurrences Users Command PostHog
No project found (CONFIG_NOT_FOUND) 34 18 link, functions deploy link
Project already linked (CONFIG_EXISTS) 14 7 link link
Invalid user input 13 3 Various link
Schema validation errors 10 4 eject, types generate link
Missing app configuration 5 5 deploy link

The CONFIG_NOT_FOUND error has the highest volume (34 occurrences) but is working as designed - users are running commands outside of Base44 project directories. The CLI correctly guides them to run base44 create or base44 link.

Recurring errors

No previous error reports found to compare against.

Action items

Numbered list of concrete next steps, most important first:

  1. [medium] src/cli/commands/auth/login-flow.ts:45 — Add EPIPE error handling in the authentication flow to gracefully handle cancelled operations without throwing unhandled pipe errors
  2. [low] Monitor function deployment timeout patterns to identify if this is a consistent backend issue requiring infrastructure attention
  3. [low] Consider improving error message for missing output directory to be more actionable (currently FILE_NOT_FOUND, could suggest build step)

Metadata

Metadata

Assignees

No one assigned

    Labels

    error-reportDaily error reports from telemetry data

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions