jruesga / rview

A Gerrit client application for Android
Apache License 2.0
66 stars 21 forks source link

Gerrit question #28

Closed autopy closed 7 years ago

autopy commented 7 years ago

Hi, I would like to ask the following error “Something went wrong RETRY” What's the cause? Is the project authority, or gerrit config?

Look forward to your reply.

jruesga commented 7 years ago

Normally, it could be a server error. Can you obtain a logcat of the device after fetch the changes and got the error? It's a public gerrit instance i can connect to? Authenticated or guess user?

autopy commented 7 years ago

Thank you very much for your letter!

My Gerrit private

click open project 。

Error as shown 20170425145230

Sorry, My Gerrit is private! LDAP Authenticated 。

I think I have a problem with the configuration。

[auth] type = LDAP gitBasicAuth = true

jruesga commented 7 years ago

According to your comments and screenshot, doesn't seems to a configuration problem to me, but a bad request or an error on request treatment. From your screenshot, you created an account (so you got authenticated and also the app did some basic checks about the gerrit instance), so all seems ok. Also you got into change listing.

is it the problem related to only one change or with every change you try to access to?

As I said before, to determine the problem, I need a logcat from the device after you get the error. This will give the possibility to analyze which request failed, its http status code and stacktraces of the failure.

To get a logcat follow these steps https://android.gadgethacks.com/how-to/android-basics-capture-logcat-for-detailed-bug-reports-0167774/

autopy commented 7 years ago

04-27 08:26:18.354 2555-2555/? E/ChangeDetailsFragment: Invalid request java.lang.RuntimeException: com.f.b.a.a.c: HTTP 400 Bad Request at a.b.e.h.b.a(SourceFile:45) at a.b.e.d.b.b(SourceFile:79) at a.b.e.c(SourceFile:4536) at com.ruesga.rview.gerrit.d.c(SourceFile:646) at com.ruesga.rview.gerrit.g.call(Unknown Source) at b.a.a.a.b.call(SourceFile:37) at b.a.a.a.d.a(SourceFile:46) at a.b.e.b(SourceFile:10514) at a.b.e.c(SourceFile:4535)

jruesga commented 7 years ago

@autopy which is the version of the gerrit instance? The server is responding that the request is not valid, so one or various of the options passed to obtain detailed information is not accepted by your gerrit instance.

autopy commented 7 years ago

Hello, I found my version is 2.9, Would like to ask, there is no 2.9? (gerrit)

And found that app are for the high version?

jruesga commented 7 years ago

@autopy Rview only supports 2.11 and high. Version 2.9 doesn't many of the features implemented in Rview.