E/AndroidRuntime(18369): com.tumblr.jumblr.exceptions.JumblrException: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
E/AndroidRuntime(18369): <html><head>
E/AndroidRuntime(18369): <title>413 Request Entity Too Large</title>
E/AndroidRuntime(18369): </head><body>
E/AndroidRuntime(18369): <h1>Request Entity Too Large</h1>
E/AndroidRuntime(18369): The requested resource<br />/dispatch.php<br />
E/AndroidRuntime(18369): does not allow request data with POST requests, or the amount of data provided in
E/AndroidRuntime(18369): the request exceeds the capacity limit.
E/AndroidRuntime(18369): </body></html>
E/AndroidRuntime(18369):
E/AndroidRuntime(18369): at com.tumblr.jumblr.request.RequestBuilder.clear(RequestBuilder.java:124)
E/AndroidRuntime(18369): at com.tumblr.jumblr.request.RequestBuilder.postMultipart(RequestBuilder.java:61)
E/AndroidRuntime(18369): at com.tumblr.jumblr.JumblrClient.postCreate(JumblrClient.java:352)
E/AndroidRuntime(18369): at com.tumblr.jumblr.types.Post.save(Post.java:254)
E/AndroidRuntime(18369): at com.tumblr.jumblr.types.SafePost.save(SafePost.java:17)
E/AndroidRuntime(18369): at com.tumblr.jumblr.types.TextPost.save(TextPost.java:1)
E/AndroidRuntime(18369): at com.postly.manager.TumblrManager$4.run(TumblrManager.java:317)
E/AndroidRuntime(18369): at java.lang.Thread.run(Thread.java:1019)
On my Android Devices with Version 4.0 and bigger it works like a charm.
Here is the code for posting:
Thread thread = new Thread(new Runnable() {
@Override
public void run() {
try {
JumblrClient client = new JumblrClient(mContext
.getString(R.string.tumblr_consumer_key), mContext
.getString(R.string.tumblr_consumer_secret),
mAccessToken, mAccessTokenSecret);
String blogName = _chosenBlog;
if (_chosenBlog.length() == 0) {
blogName = client.user().getName();
}
TextPost tp = client.newPost(blogName, TextPost.class);
tp.setBody(_text);
tp.save();
} catch (IllegalAccessException e) {
e.printStackTrace();
Log.d("XX", "Exception: " + e.getMessage());
} catch (InstantiationException e) {
e.printStackTrace();
Log.d("XX", "Exception: " + e.getMessage());
}
}
});
thread.start();
Does Jumblr work for you on Android devices with version 2.3?
The Emulator throws the same exception.
I'm thankful for any hint. :)
Ramon
--
You received this message because you are subscribed to the Google Groups "Tumblr API Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tumblr-api+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Can you verify that the size of the payload is the same where you're having issues