Issue with task creation. Please help

We are doing following process through ASANA API…

1) Task creation.
2) Assigning created task to couple of projects.
3) Attaching one image file to task.

It is working perfectly fine with 3 tokens we had previously created on ASANA. But same code with other user tokens is returning Error 400. From our end we are just changing user token and other stuff we send to API is same. We noticed that task is being created in-spite of Error # 400 but it is not being assigned to projects and it is not saving image file.

Question here are... 

A) Why it is not working with other user tokens? 
B) Is there anything related to access permission or something on ASANA? If yes then please tell us any required steps.
C) Why it is working partially with some user tokens?

Please provide your views. Thanks.

Hi @Nishant and welcome to the forum!

I’m not sure why you posted your question inside of a blockquote but it makes it hard to read due to having to scroll to read it all.

I’m re-posting it here without the block so it’s easier to read:

============

We are doing following process through ASANA API…

  1. Task creation.
  2. Assigning created task to couple of projects.
  3. Attaching one image file to task.

It is working perfectly fine with 3 tokens we had previously created on ASANA. But same code with other user tokens is returning Error 400. From our end we are just changing user token and other stuff we send to API is same. We noticed that task is being created in-spite of Error # 400 but it is not being assigned to projects and it is not saving image file.

Question here are…

A) Why it is not working with other user tokens?
B) Is there anything related to access permission or something on ASANA? If yes then please tell us any required steps.
C) Why it is working partially with some user tokens?

Hi @Nishant,

As part of the error return, there is a message parameter that will contain a text description of the error. Check that as it should give you more of a clue as to what the problem is. (Feel free to post that message here if you’re still stumped.)