Unexpected response when tweet App card through Fabric for Unity

unity

#1

Hi, we have a trouble integrate Twitter Kit via Fabric for Unity.

We try to tweet App card by calling Twitter.Compose(), App card view will appear and image show correctly.
But when we press Tweet button, nothing happened and we got following error message from logcat on Android device. (for iOS device, Tweet failed too)

 Unexpected response
java.lang.NullPointerException: Attempt to invoke interface method 'boolean java.util.List.isEmpty()' on a null object reference
	at com.twitter.sdk.android.core.Callback.onResponse(Callback.java:42)
	at retrofit2.ExecutorCallAdapterFactory$ExecutorCallbackCall$1$1.run(ExecutorCallAdapterFactory.java:68)
	at android.os.Handler.handleCallback(Handler.java:739)
	at android.os.Handler.dispatchMessage(Handler.java:95)
	at android.os.Looper.loop(Looper.java:155)
	at android.app.ActivityThread.main(ActivityThread.java:5702)
	at java.lang.reflect.Method.invoke(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:372)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1029)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:824)
Post Tweet failed
com.twitter.sdk.android.core.TwitterApiException: HTTP request failed, Status: 400
	at com.twitter.sdk.android.core.Callback.onResponse(Callback.java:42)
	at retrofit2.ExecutorCallAdapterFactory$ExecutorCallbackCall$1$1.run(ExecutorCallAdapterFactory.java:68)
	at android.os.Handler.handleCallback(Handler.java:739)
	at android.os.Handler.dispatchMessage(Handler.java:95)
	at android.os.Looper.loop(Looper.java:155)
	at android.app.ActivityThread.main(ActivityThread.java:5702)
	at java.lang.reflect.Method.invoke(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:372)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1029)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:824)

We are using Unity 5.3.7f1, Fabric 1.2.4, Twitter Kit 2.0.2
Twitter API Key&Secret for api.twitter.com and the Key was approved for post tweet.

Once we have mentioned this trouble in another post NullReferenceException while calling Twitter.Compose() in Unity

Any suggestions?


"HTTP request failed, Status: 500" when trying to tweet on Android device
#2

I have a similar problem but in my case it’s a 403 error and I don’t understand why because I have read/write permissions granted to the app.

Do I need to request whitelist App Card access during development also?