OAuth broken on appengine


#1

I’ve been using the Twitter4j library to successfully authenticate with twitter for months. Recently (in past few days) it has stopped working.

The request token is returning null values.

requestToken = twitter.getOAuthRequestToken(callbackURL);
log.info("Request token: " + requestToken.getToken());
log.info("Request token secret: " + requestToken.getTokenSecret());

This only happens on Appengine, and still works fine on my local machine.


#2

Disabling gzip in client library fixed it.
final Configuration conf = new ConfigurationBuilder().setGZIPEnabled(false).build();