Asana node returns error when getting projects

Describe the problem/error/question

I use the Asana node with the Get many method. However, Asana is returning an error (see below). It looks like the node might send a duplicated Asana project ID.

What is the error message (if any)?

project: Not a Long: 1207713441276839,1207713441276839

Information on your n8n setup

  • n8n version: 1.56.2
  • Database (default: SQLite): SQlite
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): docker
  • Operating system: Ubutnu

Hello @honzapav ,

Thank you for sharing the matter you are facing here.

I have checked the image and then I quickly tried to reproduce the issue you have. it worked for me.

Then the only way I could reproduce it was by introducing an space on the gid fin my input json. I believe your line 2 with number 1207713441276839 and perhaps other lines have an space in the end or begining. In my test I added in the end. Something like

{
      "gid": "1208235916391866 ",
      "name": "Implement features",
      "resource_type": "task",
      "resource_subtype": "default_task"
    },

You can note that I added an space in my gid on the right.

Check it and let us know if it is your case. removing it should fix the matter.

Cheers! Flavio

@honzapav ,

BTW I am using docker n8n:latest which is same as you. Inspect the input json. as your error has duplication of the number.

Below are the details of my test:

Full message

{ "errors": [ { "message": "project: Not a Long: 1208235916391866 ", "help": "For more information on API status codes and how to handle them, read the docs on errors: https://developers.asana.com/docs/errors" } ] }

Node type

n8n-nodes-base.asana

Node version

1 (Latest)

n8n version

1.56.2 (Self Hosted)

Time

05/09/2024, 13:44:44

Thanks for the replies. I have checked the data, and there are no spaces. I have also found that the problem relates only to this specific Asana project. The rest of the projects work as expected.

Even this problematic project usually works when replicating the endpoint with the HTTP node.

I also forgot we faced similar projects two months ago when using the Asana node to get all projects in an Organization.

I am pretty stuck. Do you know what data to provide so we see if it is in n8n, Asana or just the scenario?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.