New bot user Using the twitter bot to DM users getting 420 error

Support / help / discussion forum for twitter bot
User avatar
martin@rootjazz
Site Admin
Posts: 34358
Joined: Fri Jan 25, 2013 10:06 pm
Location: The Funk
Contact:

Re: New bot user Using the twitter bot to DM users getting 420 error

Post by martin@rootjazz »

martin@rootjazz wrote: Wed May 12, 2021 9:33 pm
Chamath wrote: Wed May 12, 2021 1:58 am Hey Martin thanks the log ID is 73835. I may be wrong but I personally suspect that attempting to message the people who we don't follow counts towards the rate limit so if its possible to know from before hard if we can message them or no it may help? Just my personal thoughts.


Thanks Martin for investigating cheers !
I'll check, but AFAIK it's not possible to know if you can DM before you try
Ok, I can check for this

Code: Select all

can_dm=False
I'll add this check to the next update, so that should help you. HOWEVER, this does involve additional checks PER ITEM to see if we can DM, so it may still trigger "over searching" (as we need to search to get the user_details) but should be better than hammering the DM endpoing and getting rejected
Chamath
Posts: 9
Joined: Sat May 08, 2021 3:43 pm

Re: New bot user Using the twitter bot to DM users getting 420 error

Post by Chamath »

Thanks Martin thats all i wanted <3

If it still doesint work i will split by account but let me give this a shot! i just did not want to hammer the servers if it was possible to know if i should dm in advance.

Thank you! and will get back with results.
User avatar
martin@rootjazz
Site Admin
Posts: 34358
Joined: Fri Jan 25, 2013 10:06 pm
Location: The Funk
Contact:

Re: New bot user Using the twitter bot to DM users getting 420 error

Post by martin@rootjazz »

Chamath wrote: Thu May 13, 2021 7:15 pm Thanks Martin thats all i wanted <3

If it still doesint work i will split by account but let me give this a shot! i just did not want to hammer the servers if it was possible to know if i should dm in advance.

Thank you! and will get back with results.
Let me know how it goes, it could be fix one issue, cause another, is often the case. But we'll see and take it from there if so



Regards,
Martin
Chamath
Posts: 9
Joined: Sat May 08, 2021 3:43 pm

Re: New bot user Using the twitter bot to DM users getting 420 error

Post by Chamath »

Fixed the issue worked flawlessly although after having the bot on for 6 days.

My twitter inbox has automatically been cleared of many items with only the last few days items still showing (Assuming twitter has a limit on number of messages and decided to start cleaning it out for me)

Now the app is re messaging users that i already had previously spoken too.

I just submitted log 86376 in the log
the user mentioned below is DM'ed although i have already spoke to the user before but twitter has cleared that chat from my inbox so the bot re-messaged her. (I have no cleaned any DB in twitter dub)

Also i have added stars to the users username for their privacy but below is a snippet from the log i sent.

3: Check processed: https://twitter.com/Ac*s_hi*h8*4.
16:43:23: Check processed: 981648670276792320
User avatar
martin@rootjazz
Site Admin
Posts: 34358
Joined: Fri Jan 25, 2013 10:06 pm
Location: The Funk
Contact:

Re: New bot user Using the twitter bot to DM users getting 420 error

Post by martin@rootjazz »

Chamath wrote: Sat May 15, 2021 4:12 am
My twitter inbox has automatically been cleared of many items with only the last few days items still showing (Assuming twitter has a limit on number of messages and decided to start cleaning it out for me)
Never heard of twitter doing that. Did it happen recently? I can check the logs if happened in last 7 days and see if the bot did it (it shouldn't, but I can check and confirm)
Now the app is re messaging users that i already had previously spoken too.
couple of possibilities here
1) you did not check UNIQUE so told bot to remessage users
2) the bots database got corrupted and it has lost who it has messaged before
3) bot is not saving who it message
4) bot is not checking if has messaged a user before sending
5) you did something to remove the database / processed logs (move computers / delete database / delete processed items)

Has to be one of those
I just submitted log 86376 in the log
the user mentioned below is DM'ed although i have already spoke to the user before but twitter has cleared that chat from my inbox so the bot re-messaged her. (I have no cleaned any DB in twitter dub)

Also i have added stars to the users username for their privacy but below is a snippet from the log i sent.

3: Check processed: https://twitter.com/Ac*s_hi*h8*4.
16:43:23: Check processed: 981648670276792320
twitter inbox doesn't matter, the program should keep a record of who it has messaged, let me check logs and see what I can find
User avatar
martin@rootjazz
Site Admin
Posts: 34358
Joined: Fri Jan 25, 2013 10:06 pm
Location: The Funk
Contact:

Re: New bot user Using the twitter bot to DM users getting 420 error

Post by martin@rootjazz »

Cannot see much from your logs, can you send me your database please


Please goto:
Press "windows" (start) button on keyboard and hold it down then press r.

In the run box paste:
%appdata%\rootjazz\twitterdub

In the folder that opens, right click the folder
database

then select SEND TO > COMPRESSED (ZIP)

Then send me the created zip file. Email if the file is less than 8mb, otherwise upload somewhere and email me the link

Code: Select all

support[at]rootjazz[dot]com

Regards,
Martin
Chamath
Posts: 9
Joined: Sat May 08, 2021 3:43 pm

Re: New bot user Using the twitter bot to DM users getting 420 error

Post by Chamath »

Hey Martin the issue started just moment before i posted on the form and the log file i sent earlier incldued the last day so it should be during the time frame of the logs i sent.


Also i sent you a database zip via email just now.


Thanks and much appreciated
User avatar
martin@rootjazz
Site Admin
Posts: 34358
Joined: Fri Jan 25, 2013 10:06 pm
Location: The Funk
Contact:

Re: New bot user Using the twitter bot to DM users getting 420 error

Post by martin@rootjazz »

Chamath wrote: Sat May 15, 2021 11:26 pm Hey Martin the issue started just moment before i posted on the form and the log file i sent earlier incldued the last day so it should be during the time frame of the logs i sent.
the logs didn't include any DMs being sent, as the accounts were not able to send any and the actions all cancelled. Will check database today
Post Reply