-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Bug Description
The clickup doc list command fails with a JSON unmarshaling error when trying to parse the ClickUp API response.
Command Used
./clickup doc list --workspace 90132341641Error Message
{
"error": "failed to parse response: json: cannot unmarshal number into Go struct field Doc.docs.date_created of type string",
"code": "UNMARSHAL_ERROR"
}Expected Behavior
Should list all documents in the workspace in JSON format.
Analysis
The ClickUp API appears to return date_created as a number (Unix timestamp), but the Go struct Doc.docs.date_created field is expecting a string type.
Environment
- CLI Version: v1.0.0
- OS: Ubuntu Linux
- API: ClickUp v3 (docs endpoint)
Suggested Fix
Change Doc.date_created field type from string to int64 or json.Number to properly handle Unix timestamps from the API.
Impact
This prevents accessing ClickUp documentation through the CLI, which limits the ability to manage comprehensive documentation for projects and workflows.
Context
This was discovered while setting up AI-powered CRO operations that require document management capabilities.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working