Closed Norfeldt closed 4 years ago
okay.. found the issue to be that I used "
around my secret token - in the node app that seemed to be okay (also used an .env file)
now the next error is
Please choose a workspace
0 : norfeldt.dk
1 : Personal Projects
Enter choice (default 0):
Traceback (most recent call last):
File "example-create-task.py", line 34, in <module>
projects = client.projects.find_all({'workspace': workspace['id']})
KeyError: 'id'
For that error, I believe you should change
projects = client.projects.find_all({'workspace': workspace['id']})
to
projects = client.projects.find_all({'workspace': workspace['gid']})
As we're now using string ids which have the key "gid" instead of the key "id"
I just figure that out now as well. But thank you 👍
I rewrote the Dockerfile to
created an .env file with
Then I builded the image
Started the container
docker run --env-file .env --name asana-docker -it asana bash
navigated to the examples folder and tried to start the script
example-create-task.py
But it failed to access
then I did