Error when creating subtask with projects

subtasks
api

#1

Hi,

I started getting a new strange exception today when creating subtasks with projects.

The error message is:
400 Bad Request: {"errors":[{"message":"projects is not a valid usage of [] syntax. This syntax can only be used to declare a list is empty, as in x.y.z[]=","help":"For more information on API status codes and how to handle them, read the docs on errors: https://asana.com/developers/documentation/getting-started/errors"}]}

I am calling the subtask endpoint:
https://app.asana.com/api/1.0/tasks/<task_id>/subtasks

With payload:
{:name=>"Test Name", :notes=>"Test Notes", :projects=>[<project_id>]}

This payload works when creating a standard task, and has been working in the past for creating subtasks, but started failing some time today. Any ideas? Could this be an issue on Asana’s end?


#2

This issue resolved itself the next day, so it does look like it was just some temporary issue with the Asana API.


#3

Copying our Dev Rel team @Matt_Bramlage and @Jeff_Schneider


#4

I work with Garett and we are seeing this issue again repeatedly and sporadically. For the past week or so, we see this issue happen one day and then resolve itself the next. Could you please help understand what’s going on here?