Skip to content

clawhub publish times out on upload despite successful auth #533

@taylorhou

Description

@taylorhou

Bug Report

CLI version: unknown
OS: macOS Darwin 25.3.0 (arm64)

Behavior

clawhub whoami completes successfully and returns the authenticated username (taylorhou).

clawhub publish <folder> hangs at the - Preparing <slug>@<version> step and then throws:

✖ Non-error was thrown: "Timeout". You should only throw errors.
Error: Non-error was thrown: "Timeout". You should only throw errors.

Steps to Reproduce

clawhub login --token <token>     # succeeds
clawhub whoami                    # returns username correctly
clawhub publish ./crm-in-a-box --slug crm-in-a-box --name "CRM-in-a-Box" --version 0.1.0 --changelog "Initial release"
# hangs ~20s then exits with code 1

Notes

  • Auth endpoint is clearly reachable (whoami works)
  • The publish command appears to time out during the upload/prepare phase specifically
  • Tried with both folder path and various flag combinations — same result every time
  • The timeout appears to be a Promise rejection that is not an Error instance, hence the misleading error message. The root issue is likely a network timeout on the upload request that isn't being caught and re-thrown as a proper Error.

Suggested Fix

Wrap the upload promise rejection to ensure it throws a proper Error object, and surface the underlying network error (timeout, 5xx, etc.) to the user for easier debugging.


Reported via OpenClaw / @taylorhou

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions