Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Twitter] Twitter blocks AndStatus from F-Droid - results in "Forbidden" - Messages remain unsent (occasionally?) #415

Closed
schumaml opened this issue Sep 7, 2016 · 16 comments

Comments

@schumaml
Copy link

schumaml commented Sep 7, 2016

Hi, occasionally I got messages that remain unsent forever for my Twitter account, despite multiple attempts to resend them. It doesn't matter whether they are replies or new messages.

I've read #295 and check the commands in queue log, and see that there was a HTTP status error "Forbidden".

I could share the log entry, but have two questions:

  1. Does this log contain anything I shouldn't share (e.g. some authorization token, ...)?
  2. How do I actually share a log entry there? Can't find any way to do this, despite the link mentioned above stating this possibility.
@yvolk yvolk changed the title Messages remain unsent occasionally [Twitter] "Forbidden" - Messages remain unsent occasionally Sep 7, 2016
@yvolk
Copy link
Member

yvolk commented Sep 7, 2016

I was getting similar Forbidden error some time ago, see
https://mobile.twitter.com/AndStatus1/status/750563256834613250
I edited the same post several times in AndStatus and at last it was accepted.
I didn't figure out what exactly caused this error.

See this conversation also: https://loadaverage.org/notice/8458361

@schumaml
Copy link
Author

I can't find any pattern in the messages that remain unsent. Long, short, quotes, no quotes, replies, new messages, ...

@yvolk
Copy link
Member

yvolk commented Sep 17, 2016

@schumaml How many tweets did you send successfully via AndStatus, and how many couldn't be sent due to this ”Forbidden” error?
For me this statistics is about 10 to 1 unsent.

@ericabxy
Copy link

Didn't realize this issue was related to mine. Okay so afaik NONE of my replies or retweets (possibly favorites and posts as well) are making it to Twitter. They are being blocked by a Forbidden error, as seen in Commands In A Queue. I will try to send a few more replies in the near future to help continue this investigation.

@schumaml
Copy link
Author

The issue seems to get worse - I think all messages I try to send from one of my devices run into this issue now.

@yvolk
Copy link
Member

yvolk commented Sep 27, 2016

I just tested to post to Twitter using Google Play distribution package: no problem https://mobile.twitter.com/AndStatus1/status/780638309542395904
It looks like Twitter started to ban ”AndStatus-open source” application, registered at Twitter specially for the publicly available source code. The problem is that in order to be built by f-droid or by any individual developer without any "Application registration" at Twitter the code has to include key information that shouldn't be easily available...
For Google Play distribution I use another keys, belonging to another registration at Twitter. And I keep that keys private. I guess this is why I still can post to Twitter.

As an immediate workaround please

  1. backup your f-droid distributed AndStatus application,
  2. Uninstall it
  3. Install AndStatus from Google Play
  4. Restore your data from the backup.
  5. Re-verify your Twitter accounts from inside AndStatus.

You can tell, which AndStatus distribution package you are currently using by looking up its screen with a version number (Help -> Learn more...)
Google Play version says (release-keys) and f-droid one, naturally: ”f-droid-keys”. See #407

In the long run I will add an option for a User to set any "Twitter application" keys , but this will mean that the User will have to get these keys from Twitter himself...

@schumaml schumaml changed the title [Twitter] "Forbidden" - Messages remain unsent occasionally [Twitter] Twitter blocks AndStatus from F-Droid - results in "Forbidden" - Messages remain unsent (occasionally?) Sep 27, 2016
@schumaml
Copy link
Author

It's not simply running into some overall API key posting limits, is it?

@yvolk
Copy link
Member

yvolk commented Sep 27, 2016

Yes, logging into Twitter I see that "AndStatus-OpenSource" (this is how F-Droid - distributed AND any user's built from sources AndStatus application impersonates itself in Twitter) is "Restricted from performing write actions”.
See https://support.twitter.com/articles/72585
andstatus-restricted

I submitted support request to Twitter. Waiting for reply...

@yvolk
Copy link
Member

yvolk commented Sep 27, 2016

Almost immediately I got a reply that the restriction is lifted: "We have reviewed your request and have reactivated your API key. Going forward, carefully ensure that your application adheres to Twitter’s policies..."

@ericabxy
Copy link

I wonder what policies AndStatus-opensource might have run afoul of.

It seems to me for a couple of reasons this problem or similar could occur in the future

@yvolk
Copy link
Member

yvolk commented Sep 27, 2016

@EricxDu I suspect so, so I wrote another request for clarifications and advises for my way to avoid repetition of the problem.
I suspect that somebody used Open Source code of AndStatus or/and its impersonation in Twitter in some wrong way...

@ericabxy
Copy link

BTW I have not yet confirmed that AndStatus on my phone is fully working with Twitter again.

On September 27, 2016 12:04:50 PM PDT, Yuri Volkov notifications@github.com wrote:

@EricxDu I suspect so, so I wrote another request for clarifications
and advises for my way to avoid repetition of the problem.
I suspect that somebody used Open Source code of AndStatus or/and its
impersonation in Twitter in some wrong way...

You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#415 (comment)

Sent from my Android device with K-9 Mail. Please excuse my brevity.

@yvolk
Copy link
Member

yvolk commented Sep 28, 2016

I received this reply from Twitter support. It tells about a mistake of an automated systems, but I think that they simply check if "Twitter application" owners are alive and turn off abandoned applications periodically...

Hello @AndStatus1,

Twitter has automated systems that find and disable abusive API keys in bulk. Unfortunately, it looks like your application got caught up in one of these spam groups by mistake. We have reactivated the API key and we apologize for the inconvenience.

Regards,
Twitter Platform Operations

@schumaml
Copy link
Author

Confirming successful send of any unsent message from my phone.

@ericabxy
Copy link

ericabxy commented Oct 5, 2016

I've had little chance to test Twitter due to a couple of other bugs (I should probably report soon), but I just did a test reply on an old post which showed up at twitter.com as expected. So: fixed here!

In case it is related, I haven't been able to refresh my Twitter feed in AndStatus, even after this fix. Some tweets show up (ones that I've posted recently and replies to me), but regular timeline posts don't refresh.

Sent from my Android device with K-9 Mail. Please excuse my brevity.

@yvolk
Copy link
Member

yvolk commented Oct 5, 2016

@EricxDu On problems with syncing we have a separate Q&A #295

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants