baseUrl must end in /
I host gitlab Community Edition on my own server behind an apache reverse proxy. Everything seems to work fine, except Labcoat crashes when I try to log in with the error in the title, here's the relevant android log (note that I edited out the baseurl of my server) The log shows the correct url, but it (obviously) doesn't include a / at the end of t he url. I probably misconfigured something in my reverse proxy or gitlab.rb, though the 'external url' option in gitlab.rb does include a / at the end of the url. It sounds to me that it should be fixable in the app, but if I'm wrong I could use some pointers on how I properly configure my reverse proxy.
12-28 13:25:02.882 6025 6025 D AndroidRuntime: Shutting down VM 12-28 13:25:02.896 6025 6025 E AndroidRuntime: FATAL EXCEPTION: main 12-28 13:25:02.896 6025 6025 E AndroidRuntime: Process: com.commit451.gitlab, PID: 6025 12-28 13:25:02.896 6025 6025 E AndroidRuntime: Theme: themes:{default=, iconPack:org.twelf.cmtheme, fontPkg:org.mmk2410.cyngn.theme.fira, com.android.systemui.navbar=overlay:org.cyanogenmod.hexolibre} 12-28 13:25:02.896 6025 6025 E AndroidRuntime: java.lang.IllegalArgumentException: baseUrl must end in /: https://*myserver*/gitlab 12-28 13:25:02.896 6025 6025 E AndroidRuntime: at retrofit2.Retrofit$Builder.baseUrl(Retrofit.java:496) 12-28 13:25:02.896 6025 6025 E AndroidRuntime: at retrofit2.Retrofit$Builder.baseUrl(Retrofit.java:439) 12-28 13:25:02.896 6025 6025 E AndroidRuntime: at com.commit451.gitlab.api.GitLabClient.instance(GitLabClient.java:48) 12-28 13:25:02.896 6025 6025 E AndroidRuntime: at com.commit451.gitlab.activity.LoginActivity.connectByAuth(LoginActivity.java:358) 12-28 13:25:02.896 6025 6025 E AndroidRuntime: at com.commit451.gitlab.activity.LoginActivity.connect(LoginActivity.java:348) 12-28 13:25:02.896 6025 6025 E AndroidRuntime: at com.commit451.gitlab.activity.LoginActivity.login(LoginActivity.java:210) 12-28 13:25:02.896 6025 6025 E AndroidRuntime: at com.commit451.gitlab.activity.LoginActivity.onLoginClick(LoginActivity.java:194) 12-28 13:25:02.896 6025 6025 E AndroidRuntime: at com.commit451.gitlab.activity.LoginActivity$$ViewBinder$3.doClick(LoginActivity$$ViewBinder.java:60) 12-28 13:25:02.896 6025 6025 E AndroidRuntime: at butterknife.internal.DebouncingOnClickListener.onClick(DebouncingOnClickListener.java:22) 12-28 13:25:02.896 6025 6025 E AndroidRuntime: at android.view.View.performClick(View.java:5204) 12-28 13:25:02.896 6025 6025 E AndroidRuntime: at android.view.View$PerformClick.run(View.java:21158) 12-28 13:25:02.896 6025 6025 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:739) 12-28 13:25:02.896 6025 6025 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95) 12-28 13:25:02.896 6025 6025 E AndroidRuntime: at android.os.Looper.loop(Looper.java:148) 12-28 13:25:02.896 6025 6025 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5461) 12-28 13:25:02.896 6025 6025 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 12-28 13:25:02.896 6025 6025 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 12-28 13:25:02.896 6025 6025 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 12-28 13:25:02.899 12370 20954 W ActivityManager: Force finishing activity com.commit451.gitlab/.activity.LoginActivity
I use labcoat 2.2.5 from f-droid, if that makes a difference.
Oh, I'm an idiot. I just filled in an url without a / at the end. Closing this issue.