Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error logging in #432

Open
eprst opened this issue Apr 15, 2022 · 3 comments
Open

error logging in #432

eprst opened this issue Apr 15, 2022 · 3 comments
Labels

Comments

@eprst
Copy link
Contributor

eprst commented Apr 15, 2022

similar to 264, but I triple checked my url, it points to the main gerrit page and uses https.

Gerrit 3.1.2, plugin 1.2.5-203

Caused by: com.google.gerrit.extensions.restapi.RestApiException: Expected JSON but got 'text/html; charset=utf-8'.
	at com.google.gerrit.extensions.restapi.RestApiException.wrap(RestApiException.java:25)
	at com.urswolfer.gerrit.client.rest.http.GerritRestClient.checkContentType(GerritRestClient.java:521)
	at com.urswolfer.gerrit.client.rest.http.GerritRestClient.requestJson(GerritRestClient.java:156)
	at com.urswolfer.gerrit.client.rest.http.GerritRestClient.getRequest(GerritRestClient.java:118)
	at com.urswolfer.gerrit.client.rest.http.changes.ChangesRestClient.get(ChangesRestClient.java:130)
	at com.urswolfer.gerrit.client.rest.http.changes.ChangesRestClient.access$000(ChangesRestClient.java:37)
	at com.urswolfer.gerrit.client.rest.http.changes.ChangesRestClient$1.get(ChangesRestClient.java:95)
	at com.urswolfer.intellij.plugin.gerrit.rest.GerritUtil.testConnection(GerritUtil.java:584)
@uwolfer
Copy link
Owner

uwolfer commented Apr 15, 2022

@eprst Have you also checked out #422?

@eprst
Copy link
Contributor Author

eprst commented Apr 15, 2022

that one was about mixing up http/https as I understand. I see https both in the browser and plugin config.

Is there any way to see the text/html response payload?

@uwolfer
Copy link
Owner

uwolfer commented Jun 14, 2022

Added some more logging information, will be available with in the next release:
uwolfer/gerrit-rest-java-client@1e1489a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants