Good day,
I'm a new titanium developer and recently I've tried using the Facebook Module. I tested a scenario wherein my application cannot connect to facebook. I did this by blocking any connection to facebook and by doing so I encountered this error.
Error Log
[ERROR] : FacebookModule: (main) [741,37997] LoginDialogListener onFacebookError: net::ERR_TUNNEL_CONNECTION_FAILED [ERROR] : FacebookModule: com.facebook.android.FacebookError: net::ERR_TUNNEL_CONNECTION_FAILED [ERROR] : FacebookModule: at com.facebook.android.Facebook.onSessionCallback(Facebook.java:433) [ERROR] : FacebookModule: at com.facebook.android.Facebook.access$000(Facebook.java:97) [ERROR] : FacebookModule: at com.facebook.android.Facebook$2.call(Facebook.java:379) [ERROR] : FacebookModule: at com.facebook.Session$3$1.run(Session.java:1239) [ERROR] : FacebookModule: at android.os.Handler.handleCallback(Handler.java:733) [ERROR] : FacebookModule: at android.os.Handler.dispatchMessage(Handler.java:95) [ERROR] : FacebookModule: at android.os.Looper.loop(Looper.java:136) [ERROR] : FacebookModule: at android.app.ActivityThread.main(ActivityThread.java:5001) [ERROR] : FacebookModule: at java.lang.reflect.Method.invokeNative(Native Method) [ERROR] : FacebookModule: at java.lang.reflect.Method.invoke(Method.java:515) [ERROR] : FacebookModule: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785) [ERROR] : FacebookModule: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601) [ERROR] : FacebookModule: at dalvik.system.NativeStart.main(Native Method) [ERROR] : FacebookModule: (main) [2,37999] onAuthFail: net::ERR_TUNNEL_CONNECTION_FAILEDI would like to ask if there is anyway to capture this code as using try/catch on the
authorize() method does not do anything since it seems the error was not thrown or bubbled up. It also does not seem to continue to the login event so checking for e.error does not work.
Do note that I have no problem logging in when my environment is in normal setup.
Any help would be much appreciated. Let me know if there are other information you require.
Thanks!