thash / asana

Asana command line Client
115 stars 25 forks source link

`asana tasks` doesn't show any tasks #29

Open jfhbrook-at-work opened 2 years ago

jfhbrook-at-work commented 2 years ago

I've been trying this out and I'm seeing a few weird behaviors. After working around #28 by looking up and setting the workspace gid in ~/.asana.yml I tried to list some tasks and I get nothing:

~ via 🐍 v3.8.8 (env) on ☁️  (us-west-2) took 3s
❯ asana tasks

I also tried grabbing an individual task with an ID I pulled from the UI and JSON unmarshalling is really unhappy:

~ via 🐍 v3.8.8 (env) on ☁️  (us-west-2)
❯ asana t {my task ID}
400 Bad Request
2021/12/16 14:57:40 fatal: json: cannot unmarshal array into Go value of type api.Task_t

I'm wondering if this is due to changes in Asana's API, similar to what I suspect is going on in #28 ?