Hi, I came across an issue with scheduled tweets:
When I send a scheduled tweet, it gets published twice.

The request URL (accountId is the account id, queryParams are the parameters in string):
https://ads-api.twitter.com/9/accounts/{accountId}/scheduled_tweets?{queryParams}

Example of a tweet that was published twice:
Account id: 15382246
Tweet id: 1482013228389396480

Attached is a screenshot showing the duplication.

Thank you in advance

Perhaps the function gets called twice?

I call the function only once

We’ve had occasional reports over the years where this happens sporadically - likely aligning with internal infrastructure incidents.

Can you confirm whether this behavior was limited to that specific timeframe? If not, can you provide API requests and times when you’ve been able to reproduce this?

1 Like

I tried to reproduce it but didn’t succeed.

I have a few tweet ids from when it happened:
1482013228389396480
1480336556573347840
1480867797785714690

Hi again,

It continues to happen from time to time, I have an example of 2 scheduled tweets from the same account- one was published once and the other was published twice.

Request that was published twice:
https://ads-api.twitter.com/9/accounts/18ce54smibh/scheduled_tweets?scheduled_at=2022-01-25T13%3A38%3A00Z&nullcast=false&media_keys=13_1485980403336835073&as_user_id=826834485538914304&text=asset%20schedule%20test

Parameters in the request:
scheduled_at=2022-01-25T13:38:00Z &
nullcast=false &
media_keys=13_1485980403336835073 &
as_user_id=826834485538914304 &
text=asset schedule test

Request that was published once:
https://ads-api.twitter.com/9/accounts/18ce54smibh/scheduled_tweets?scheduled_at=2022-01-25T13%3A21%3A00Z&nullcast=false&media_keys=13_1485986229761970176&as_user_id=826834485538914304&text=video%20schedule%20test

Parameters in the request:
scheduled_at=2022-01-25T13:21:00Z &
nullcast=false &
media_keys=13_1485986229761970176 &
as_user_id=826834485538914304 &
text=video schedule test

Any help would be highly appreciated,
Thanks

The Twitter account is restricted so I’m unable to view these Tweets. Unfortunately, I don’t have a log of the POST request that is scheduling these Tweets in our system. It looks like we need the response header of x-transaction-id for the POST request to investigate further.

The issue started to occur when we started using Tweetinvi nuget version 5.0.4 (and as shown above the URL we call is https://ads-api.twitter.com version 9), could the nuget be related to the issue by any chance? Thanks

There are two possibilities: your application is creating multiple scheduled Tweets or Twitter is creating multiple Tweets from the one Scheduled Tweet.

I haven’t seen any recent reports where duplicate Tweets are generated so it is possible multiple Scheduled Tweets are being created. You should be able to query the list of Scheduled Tweets to see if there are duplicates.