node-twitter-api-v2 icon indicating copy to clipboard operation
node-twitter-api-v2 copied to clipboard

Request failed with code 403 - You attempted to reply to a Tweet that is deleted or not visible to you. (Twitter code 385)

Open tarasowski opened this issue 3 years ago • 6 comments

Describe the bug These error happens randomly. I'm trying to send a thread and sometimes I receive this error. Feels like there are some race conditions. Most of the time the first tweet gets sent, the others not.

To Reproduce Please indicate all steps that lead to this bug:

  1. OAuth2
  2. await client.v1.tweetThread

Expected behavior Should send a thread without errors

Version

  • Node.js 16
  • 1.12.3
  • Linux

tarasowski avatar Sep 16 '22 09:09 tarasowski

This is an issue of Twitter API and not the lib right? The library just takes the ID of posted tweet and gives it to twitter to send the next tweet.

alkihis avatar Sep 16 '22 09:09 alkihis

This is what I'm getting as a response: "Request failed with code 403 - You attempted to reply to a Tweet that is deleted or not visible to you. (Twitter code 385) "

tarasowski avatar Sep 16 '22 10:09 tarasowski

Any updates for this issue? Is this still happening? I'm not sure the lib is responsible for this.

alkihis avatar Dec 22 '22 14:12 alkihis

Yes it was again happening. Actually it was happening with the client.v1.tweetThread. What I did I implemented it manually and added a delay of 5 sec between each tweet. Now it works but I'm not using the tweetThread method anymore.

tarasowski avatar Dec 22 '22 15:12 tarasowski

Thanks for your reply! It may be a delay issue on Twitter side (cache management?), because the lib is doing the things right. I will look for a possible patch to avoid this issue.

alkihis avatar Dec 22 '22 16:12 alkihis

Thanks! Also what I noticed is that it wasn`t posting all tweets in a row, so basically it missed the sequence.

tarasowski avatar Dec 22 '22 16:12 tarasowski