wtfutil/wtf · error

error querying tasks: %s

Error message

error querying tasks: %s

What it means

Wraps any error returned by the Asana client's QueryTasks API call when fetching tasks, so the widget cannot obtain its task list. It fires whenever the Asana API request fails — network problems, invalid/expired token, bad query parameters, or API-side errors.

Source

Thrown at modules/asana/client.go:272

	return sectionId, nil
}

func getTasksFromAsana(client *asana.Client, q *asana.TaskQuery) ([]*asana.Task, bool, error) {
	moreTasks := false

	tasks, np, err := client.QueryTasks(q, &asana.Options{
		Limit: 100,
		Fields: []string{
			"assignee",
			"name",
			"num_subtasks",
			"due_on",
			"completed",
		},
	})

	if err != nil {
		return nil, false, fmt.Errorf("error querying tasks: %s", err)
	}

	if np != nil {
		moreTasks = true
	}

	return tasks, moreTasks, nil
}

View on GitHub (pinned to bb838c1ccb)

Solutions

  1. Verify the Asana token (apiKey config or WTF_ASANA_TOKEN) is valid and not expired
  2. Check network connectivity and any proxy settings between the host and api.asana.com
  3. Confirm the TaskQuery parameters (workspace/project/section IDs) reference existing resources
  4. Inspect the wrapped inner error (%s) for the underlying API failure detail before further action
Defensive patterns

Strategy: fallback

When it happens

Trigger: Thrown at modules/asana/client.go:272 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of wtfutil/wtf@bb838c1ccb (2026-09-03). Data as JSON: /api/errors/1e4637f3c9507794. Report an issue: GitHub.