You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi team, I am trying to use the MergeRequestApi getDiffs to retrieve the MR diff. val mergeRequestDiff = api.mergeRequestApi.getDiffs(projectID, mergeRequestIId)
It returns 500 Internal Server Error. org.gitlab4j.api.GitLabApiException: 500 Internal Server Error at org.gitlab4j.api.AbstractApi.validate(AbstractApi.java:678) at org.gitlab4j.api.AbstractApi.get(AbstractApi.java:214) at org.gitlab4j.api.Pager.<init>(Pager.java:92) at org.gitlab4j.api.MergeRequestApi.getDiffs(MergeRequestApi.java:591) at org.gitlab4j.api.MergeRequestApi.getDiffs(MergeRequestApi.java:575) at com.indeed.pqp.service.daemon.util.LanguageHelper.getDiffFilePath(LanguageHelper.kt:25) at com.indeed.pqp.service.daemon.util.LanguageHelperTest.get changed file languages(LanguageHelperTest.kt:18) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
I tried to use Postman to call the API https://code.xxx.com/api/v4/projects/123/merge_requests/1/diffs, and it worked as expected. Can someone help me take a look? Thanks!
The text was updated successfully, but these errors were encountered:
To be precise: org.gitlab4j.api.MergeRequestApi#getDiffs(java.lang.Object, java.lang.Long, int) ,it's ok!
But: org.gitlab4j.api.MergeRequestApi#getDiffs(java.lang.Object, java.lang.Long) , Probably because of the default 96, the error is generated?
After my trial and error, if itemsPerPage is more than 30, it produces error 500. If it is less than or equal to 30, it produces 200.
Hi team, I am trying to use the MergeRequestApi getDiffs to retrieve the MR diff.
val mergeRequestDiff = api.mergeRequestApi.getDiffs(projectID, mergeRequestIId)
It returns 500 Internal Server Error.
org.gitlab4j.api.GitLabApiException: 500 Internal Server Error at org.gitlab4j.api.AbstractApi.validate(AbstractApi.java:678) at org.gitlab4j.api.AbstractApi.get(AbstractApi.java:214) at org.gitlab4j.api.Pager.<init>(Pager.java:92) at org.gitlab4j.api.MergeRequestApi.getDiffs(MergeRequestApi.java:591) at org.gitlab4j.api.MergeRequestApi.getDiffs(MergeRequestApi.java:575) at com.indeed.pqp.service.daemon.util.LanguageHelper.getDiffFilePath(LanguageHelper.kt:25) at com.indeed.pqp.service.daemon.util.LanguageHelperTest.get changed file languages(LanguageHelperTest.kt:18) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
I tried to use Postman to call the API
https://code.xxx.com/api/v4/projects/123/merge_requests/1/diffs
, and it worked as expected. Can someone help me take a look? Thanks!The text was updated successfully, but these errors were encountered: