twscrape icon indicating copy to clipboard operation
twscrape copied to clipboard

Response status when Accounts is banned or session Expired

Open 0xGhostCasper opened this issue 11 months ago • 2 comments

Hi, @vladkens !

I thought it would be super useful to return some kind of Command or Query result objects from method calls with success status codes and error reasons instead of just returning None values in case of expired session or banned account, because right now we cannot spot and react to situations when account gets banned or session expires - we only see debug logs and that's it, this is not helping to manage application flow.

I believe this should be useful for others aswell, I believe I already saw such suggestion before here in issues section.

0xGhostCasper avatar Mar 13 '24 14:03 0xGhostCasper

#137 This is what was causing my scripts to never grab full following. Would hit a banned account and would just stop the gather function.

sicholas avatar Mar 28 '24 22:03 sicholas

Screenshot 2024-03-29 at 1 12 49 PM

Got it to work by editing the queue_client.py code, was truly never catching the banned 403 error. This implementation has it simply removes the account and places it in inactive status. Let me know if that helps! @0xGhostCasper

sicholas avatar Mar 29 '24 13:03 sicholas

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Jul 28 '24 01:07 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Aug 11 '24 01:08 github-actions[bot]