{"record":{"id":"1e4637f3c9507794","repo":"wtfutil/wtf","slug":"error-querying-tasks-s","errorCode":null,"errorMessage":"error querying tasks: %s","messagePattern":"error querying tasks: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"modules/asana/client.go","lineNumber":272,"sourceCode":"\treturn sectionId, nil\n}\n\nfunc getTasksFromAsana(client *asana.Client, q *asana.TaskQuery) ([]*asana.Task, bool, error) {\n\tmoreTasks := false\n\n\ttasks, np, err := client.QueryTasks(q, &asana.Options{\n\t\tLimit: 100,\n\t\tFields: []string{\n\t\t\t\"assignee\",\n\t\t\t\"name\",\n\t\t\t\"num_subtasks\",\n\t\t\t\"due_on\",\n\t\t\t\"completed\",\n\t\t},\n\t})\n\n\tif err != nil {\n\t\treturn nil, false, fmt.Errorf(\"error querying tasks: %s\", err)\n\t}\n\n\tif np != nil {\n\t\tmoreTasks = true\n\t}\n\n\treturn tasks, moreTasks, nil\n}\n","sourceCodeStart":254,"sourceCodeEnd":281,"githubUrl":"https://github.com/wtfutil/wtf/blob/bb838c1ccb0f0f3223690df44afdec663d622881/modules/asana/client.go#L254-L281","documentation":"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.","triggerScenarios":"Thrown at modules/asana/client.go:272 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the Asana token (apiKey config or WTF_ASANA_TOKEN) is valid and not expired","Check network connectivity and any proxy settings between the host and api.asana.com","Confirm the TaskQuery parameters (workspace/project/section IDs) reference existing resources","Inspect the wrapped inner error (%s) for the underlying API failure detail before further action"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"bb838c1ccb0f0f3223690df44afdec663d622881","analyzedAt":"2026-09-03T17:02:45.030Z","contentChangedAt":"2026-09-03T17:02:45.030Z","schemaVersion":2},"datasetVersion":"2026-09-11T00:17:11.886Z"}