Hi everyone,
We’re integrating with Asana using webhooks and sync over workspaces, projects, tasks and users for our customers. We have one customer that keeps creating tasks for a project in Asana, but it’s not appearing in our system. I’ve checked the logs and we don’t get the create event.
One example is for the task with gid “1152224421001089” which is part of the project with gid “16776995619125”. The first event we got was a change event on 04 Dec 2019 23:24:29.964, but the task was created at “2019-12-03T15:03:58Z”.
They only seem to encounter issues with this project in particular.
Any help is highly appreciated.
Thanks!
Did anybody even see this post?
Hello @Raul_Popadineti!
We can check on our side to see if anything funny happened. Could I get the gid of the Webhook and the User who created the task?
And for extra clarification, is this project getting 0 “task added” events, or is it intermittent?
Hi @Ross_Grambo
The webhook GID is 803590796242349.
Unfortunately, I don’t know who created the task. Is there an endpoint through which I can retrieve that information?
And for extra clarification, is this project getting 0 “task added” events, or is it intermittent?
It’s intermittent.
Thanks @Raul_Popadineti
I asked an API engineer to take a look. I’ll let you know if we find anything!
Best,
Ross
1 Like
Hey @Raul_Popadineti,
It looks like we currently do not have a reliable way to debug intermittent missing events. We’re working on better webhooks now, and hope to make debugging these instances easier.
Give us some time to put these changes in place and we’ll take another look. We should then be able to track this down.
Sorry if this causes you issues in the meantime. Let me know if you discover a consistent way to reproduce it, as that will allow us to fix your issue now instead of waiting for these changes.
Oh! I’m sorry to hear this.
Please ping me once the changes are in place so we can adjust our Asana integration accordingly (if it will require change).
Have a great rest of the week @Ross_Grambo!
1 Like
Hello @Raul_Popadineti!
We just deployed the logging for this. It lasts 24 hours at a time. Could you reproduce your issue and then ping me when it happens? I’ll need the Webhook gid, the resource gid, and ideally what type of event was missed. Feel free to ping me on here or dm me.
Hi @Ross_Grambo,
Am I experiencing the same problem?
I created a webhook yesterday (1165227563718237). i created 1 task yesterday (1165224763141081) and 2 tasks today (1165374388132695 and 1165400074272641).
when i make an update to either of the tasks created today, my webhook is receiving data for the task created yesterday.
my webhook right now is doing nothing other than printing out what is being received.
def lambda_handler(event, context):
print(event['body'])
Hey @jonathan7,
Are you responding with a 200 status code? Our webhook sends all of the data that has changed since the last successfully delivered webhook. In this situation, it sounds like your lambda_handler isn’t responding with a 200 or 204, so we think your server failed to receive the webhook.
Google’s telling me python lambda functions should end with something like:
return {
'statusCode': 200,
'body': json.dumps('Hello from Lambda!')
}
I hope this helps!
1 Like
Hey,
It seems like the issue is back. We have an Asana integration set up, and in the past 5 days we’ve had multiple customers complain that tasks aren’t sync’ing properly with our system.
I’ve just checked one case today, and it seems to be valid. There was one task that was created, assigned, unassigned, and reassigned to a different user, but we never received an event for these changes on our webhook.
The webhook GID is 1101197616767613, and I can confirm no task events were sent to it in the past 3 days. The task for which the customer complained has the GID 1195960434091913.
I did not look into the others, but I’ll find some time this week, and confirm if it’s the same thing there as well.
Until we get to the bottom of this, we’ll probably switch back to pulling recent events from Asana, instead of relying on webhook events.
Kindly,
Raul
1 Like
Hey @Raul_Popadineti,
I’m sorry this is happening again.
We have some engineers looking into it. They asked me to confirm this hasn’t happened until ~5 days ago (since February)? That you’re aware of?
Yep. That is correct.
And we got 5 more customers in the past 18 hrs complaining about things not syncing w/ Asana.
@Ross_Grambo,
I’m not sure if it’s related but I also have an occurrence where there was a change made to a task and my app didn’t seem to receive an event for it.
Here is the info if it helps:
Task gid = 1195951499091229
Webhook gid = 1192893260436310
Story gid representing the section-change event that I didn’t get notified about = 1195963942967398
Another quick update: 2 more customers complained about it since the last time I posted.
@Ross_Gambo,
We’ve had several of our clients experiencing similar issues recently as well. If it helps, I can provide some sample webhook gids. However, we have since deleted and re-created the hooks and that seems to have resolved the issue.
One interesting thing we noticed is that the last success date and the last error date are both not updated, even though there are items that should have generated a notification. It appears to have started for us on September 21st.
1 Like
I have the same experience as @Maggie_Reddi - regarding the problematic webhook I mentioned above, I deleted and recreated it and it seems to be working now.
@Raul_Popadineti, have you tried that to see if it gets your webhooks working again?
Our API team was able to find the events and see that they were not sent via webhook. They’re looking into the cause now.
Again, sorry that this is happening. Has anyone noticed this issue happening for the /events endpoint? /events and webhooks use a lot of the same underlying infrastructure, so I’m curious if this is only happening for webhooks.