Hello everyone,
       I am implementing twitter on android by using sugree API for
android.  I am able to get the access token.  But when i post the status to
twitter i am getting this response:

04-22 18:32:36.909: DEBUG/RESPONSE(407): Status: 500 Internal Server
ErrorContent-Type: text/html<html><body><h1>500 Internal Server
Error</h1></body></html>Status: 500 Internal Server ErrorContent-Type:
text/html<html><body><h1>500 Internal Server Error</h1></body></html>

I am getting this error:

04-22 18:32:36.479: DEBUG/Twitter-Util(407): POST URL:
http://api.twitter.com/1/statuses/update.xml
04-22 18:32:36.589: INFO/global(407): Default buffer size used in
BufferedOutputStream constructor. It would be better to be explicit if an 8k
buffer is required.
04-22 18:32:36.599: WARN/Bundle(407): Key method expected byte[] but value
was a java.lang.String.  The default value <null> was returned.
04-22 18:32:36.679: WARN/Bundle(407): Attempt to cast generated internal
exception:
04-22 18:32:36.679: WARN/Bundle(407): java.lang.ClassCastException:
java.lang.String
04-22 18:32:36.679: WARN/Bundle(407):     at
android.os.Bundle.getByteArray(Bundle.java:1305)
04-22 18:32:36.679: WARN/Bundle(407):     at
com.sugree.twitter.Util.encodePostBody(Util.java:63)
04-22 18:32:36.679: WARN/Bundle(407):     at
com.sugree.twitter.Util.openUrl(Util.java:178)
04-22 18:32:36.679: WARN/Bundle(407):     at
com.tacpoint.twitter.TwitterConnect$1.onClick(TwitterConnect.java:53)
04-22 18:32:36.679: WARN/Bundle(407):     at
android.view.View.performClick(View.java:2408)
04-22 18:32:36.679: WARN/Bundle(407):     at
android.view.View$PerformClick.run(View.java:8816)
04-22 18:32:36.679: WARN/Bundle(407):     at
android.os.Handler.handleCallback(Handler.java:587)
04-22 18:32:36.679: WARN/Bundle(407):     at
android.os.Handler.dispatchMessage(Handler.java:92)
04-22 18:32:36.679: WARN/Bundle(407):     at
android.os.Looper.loop(Looper.java:123)
04-22 18:32:36.679: WARN/Bundle(407):     at
android.app.ActivityThread.main(ActivityThread.java:4627)
04-22 18:32:36.679: WARN/Bundle(407):     at
java.lang.reflect.Method.invokeNative(Native Method)
04-22 18:32:36.679: WARN/Bundle(407):     at
java.lang.reflect.Method.invoke(Method.java:521)
04-22 18:32:36.679: WARN/Bundle(407):     at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
04-22 18:32:36.679: WARN/Bundle(407):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
04-22 18:32:36.679: WARN/Bundle(407):     at
dalvik.system.NativeStart.main(Native Method)

04-22 18:32:36.909: DEBUG/RESPONSE(407): Status: 500 Internal Server
ErrorContent-Type: text/html<html><body><h1>500 Internal Server
Error</h1></body></html>Status: 500 Internal Server ErrorContent-Type:
text/html<html><body><h1>500 Internal Server Error</h1></body></html>



Thanks in advance,
   aby

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk

Reply via email to