Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Trello Webhook Posting Multiple Times

Ashley_Abell August 2, 2018

I've set a webhook for a board using this endpoint:
/tokens/{token}/webhooks
With the idModel= as the board id.

When I do a GET request to: /tokens/{token}/webhooks
It only brings one result back which is correct.

When I move a card on the board to another list I get multiple responses back at different times.

I put the responses into text files for testing and each one of them files are identical.

14:29 1533220161.txt
14:29 1533220191.txt
14:30 1533220251.txt
14:32 1533220371.txt

Can anyone answer why I am receiving multiple callbacks for the same action?

I have deleted and re-added the same board ID for testing but since they are deleted and also not showing in the list I mentioned above why am I receiving multiple.

1 answer

0 votes
Oscar Triscon
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 2, 2018

Hi Ashley,

Are you responding with 200 OK? Trello automatically retries up to 3 times if it doesn't receive a success status code.

Ashley_Abell August 2, 2018

Yeah, 200 is the response code.

Oscar Triscon
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 2, 2018

If you're certain your 200 is making it back to the server, the only other thing I can think of is whether you've registered the same webhook under several different tokens.

Ashley_Abell August 2, 2018

Sorry, you were right about Trello retrying.

I found out that there was a small mistake resulting in a 500 error, this is at the very end of the script so what I was doing was working then it error'ed.

I fixed that and I'm only receiving one event now.

Thanks.

Oscar Triscon
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 2, 2018

No worries, glad you could figure it out.

Like mitchsilvy likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events