Contribute to Open Source. Search issue labels to find the right project for you!

Crashes related to server URL

zulip/zulip-mobile

My Android keyboard mangled “recurse.zulipchat.com” to “recurse. zulipchat. com” which caused the Zulip Android app available on Play to crash when I clicked “Enter”. Android can also be crashed by entering an invalid server URL, backgrounding the app, then foregrounding it. Both of these methods show the same okhttp stacktrace.

com.zulipmobile E/AndroidRuntime: FATAL EXCEPTION: mqt_native_modules
     Process: com.zulipmobile
     Theme: themes:{}
     java.lang.IllegalArgumentException: unexpected url: https://recurse. zulipchat. com/api/v1/server_settings?
         at okhttp3.Request$Builder.url(Request.java:142)
         at com.facebook.react.modules.network.NetworkingModule.sendRequest(NetworkingModule.java:171)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:363)
         at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:162)
         at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
         at android.os.Handler.handleCallback(Handler.java:739)
         at android.os.Handler.dispatchMessage(Handler.java:95)
         at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:31)
         at android.os.Looper.loop(Looper.java:148)
         at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:194)
         at java.lang.Thread.run(Thread.java:818)

Apologies if this has already been fixed. I tried to build the Android app to see if this had been fixed but running react-native run-android gives the error more than one library with package name 'com.wix.reactnativenotifications'.

I was able to build the iOS app. It doesn’t show this crash, although the page looks somewhat broken (“Enter” button only partially visible). screen shot 2017-10-31 at 12 21 48 pm

Updated 02/11/2017 00:45 6 Comments

Fork me on GitHub