n8n-io / n8n

Free and source-available fair-code licensed workflow automation tool. Easily automate tasks across different services.
https://n8n.io
Other
45.67k stars 6.34k forks source link

Asana node fails to load all tasks from a workspace #10740

Open leikoilja opened 1 week ago

leikoilja commented 1 week ago

Bug Description

Calling asana node for loading all tasks and specifying both assignee and workspace fails with Bad request - please check your parameters. Weird thing is that workspace seem to be repeated twice, comma-separated.

image

To Reproduce

  1. add asana node
  2. set to load all tasks for assignee from a workspace

Debug info

core

storage

pruning

Generated at: 2024-09-09T14:41:30.583Z

Expected behavior

load tasks without issue

Operating System

docker

n8n Version

1.58.0

Node.js Version

18.2004

Database

PostgreSQL

Execution mode

queue

Joffcom commented 1 week ago

Hey @leikoilja,

We have created an internal ticket to look into this which we will be tracking as "GHC-216"

Joffcom commented 6 days ago

Hey @leikoilja,

I am not able to reproduce this, How many tasks does that user have?

image

leikoilja commented 6 days ago

Thanks for the quick response @Joffcom. The user does not have many tasks, max a few dozens (surely under 100 tasks). Weird thing that it was been working until it "just stopped" a few weeks ago.

i previously was on v1.33.0 but after this integration stopped working, i bumped to v1.58.0 with no changes.

what's weird to me is that doubled workspace id in the QP, i cannot piece together were it might be coming from...

if the same thing works for you, I wonder if it may help for me to remove auth creds and re-do them 🤔

Joffcom commented 6 days ago

Hey @leikoilja,

Yeah the double ID is very odd, It could be worth deleting the node and adding it again.

leikoilja commented 6 days ago

@Joffcom, i think i managed to replicate it now. there must be an issue with API pagination.

i have just been try-and-error playing with that and notices that when i deselect return all - it works as expected but returns 100 items with a warning: image

100 is also a default limit, but i cannot set it higher than 100 because API returns another error saying it must be <= 100.

i guess i was wrong with my estimation that user tasks will be less then 100 😅