-
Notifications
You must be signed in to change notification settings - Fork 22
scm collector not collecting pull request and issues data Also It appends bucket.org in the url when passed like ( https://[email protected]/team/repo.git) #27
Comments
Also i tried to generate encrypted key using https://hygieia.github.io/Hygieia/collectors.html#encryption-for-private-repos In hygieia core dir i get below error:
|
Hi This issue helped me clear my doubt on what to password field in widget repo hygieia/hygieia#2219 But Still I am not getting the pull request details: bucket.org/ is getting appended
Any help on it? |
@rvema @chtompki @Sbrenthughes any thoughts and inputs here , still struggling. |
@Sjnahak We are using an on-prem instance of Bitbucket Server. So I have never tested cloud-related code in the collector. As I can't test this code so I can't help much here than taking a look at that code. I will take a look at the DefaultBitbucketCloudClient and will get back to you. |
I see that @raghulraj has the most recently enhanced BitbucketApiUrlBuilder to support pull request endpoint for the cloud Bitbucket. @raghulraj Can comment on this issue. |
I get below out while trying the above url
|
@Sjnahak Are you providing your username/password as well while accessing REST API? |
@shishirchaturvedi I am getting output now tried using curl . |
@Sjnahak This is great. Now you can match that URL and input from the collector log to identify potential problems. |
@shishirchaturvedi That is the same url executed when collector runs correct? |
@Sjnahak It should be, if not then you can find the problem by comparing both urls. |
Both url's are same. Can't find any difference also does repo widget support multiple branch |
@Sjnahak What http response code are you getting in your collector log? is it 400(bad request) or 404(not found) or 401/403? |
|
@Sjnahak What happens when you curl this URL from option 1 you mentioned - "https://bitbucket.org/api/2.0/repositories/team/reponame/pullrequests?at=refs%2Fheads%2Fdev&state=all&limit=0" ? |
@shishirchaturvedi when i fire a curl command for option 1
|
@shishirchaturvedi any input ? |
@Sjnahak The collector log is not showing the right reason for the Exception. Could you please increase the log level of Sprintframewok packages to DEBUG so that we can get more information? logging.level.com.capitalone.dashboard=DEBUG
logging.level.org.springframework=DEBUG |
@shishirchaturvedi After checking the debug logs i was getting 403 error for my userid , used different user id which resolved the 403 error and we can see pull request data in the collector logs but in UI Pull request data seems to be missing. Also Same issue we are facing with JIRA, where jira collector collects the data successfully but not visible in the UI. |
@shishirchaturvedi I guess repo widget in the UI Also not refreshing now |
@Sjnahak Can you please enable DEBUG logs for API module as well to get more insight into what's going on there? Sounds trivial but please make sure that data is getting populated in MongoDB collections of hygieia db instance and collector/api is using a common database instance. |
@shishirchaturvedi i can see data in hygieia db but looks like lot of data is missing in mongodb. I will enable debug logs for api what information you want me capture from api logs? |
@Sjnahak Gitrequest collection should have some data. This explains why you are not seeing any PR data on the widget. Do you see this log message in your SCM collector logs - |
@shishirchaturvedi i don't see this message "collector logs - pull Request count when that collector finishes"
When collector is running i can see something like for commits collections, same way it should happen for Gitrequest collection which is not happening.
I can see below in the logs as well
|
@Sjnahak This is exception - |
@shishirchaturvedi Pinged you in gitter |
Hi @Sjnahak, I'm getting the same issue "ERROR c.c.d.collector.PullRequestCollector - Exception block: null", could you please share the possible solution here when you solve it. |
@secheverri, @shishirchaturvedi has suggested some changes will do once the testing is successful |
Hi ,
I am configuring collector for bitbucket cloud, I am able to get commits for branch but not the pull request and issues.
Here is my appllication.properties
Also in api.properties i have
In The widget i have passed
Error logs :
UI output :
Let me know what am i missing to get the full data.
The text was updated successfully, but these errors were encountered: