Search code examples
apitagsasana

Asana API get all tags


I'm the developer of this PHP class wrapper for Asana API https://github.com/ajimix/asana-api-php-class

In the last Asana API update, tags support were added. I added all the endpoints to my class but I found that one isn't working. This one: https://app.asana.com/api/1.0/tags

It returns me HTTP code 0...

That fails too:

curl -u API_KEY: https://app.asana.com/api/1.0/tags

Everything is working, get tags by workspace, add tags to task, etc.

But that doesn't and documentation says it should work.

API Tags Documentation


Solution

  • (I work at Asana)

    This appears to work on Asana's end. If you are logged-in to Asana, try putting that URL in your browser.

    HTTP status code 0 is not something that is returned from the API. More than likely that is just a code on your HTTP client to indicate that the server never returned a response. It is possible that you have a large number of tags so the response takes too long or is too large, but we have seen this particular request return hundreds of tags successfully.

    Perhaps you have a very short timeout or some other connection problem?