leehoawki opened a new issue, #4927:
URL: https://github.com/apache/incubator-devlake/issues/4927

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What happened
   
   I am not able to add Bitbucket connection.
   
   It says : Test Failed.Please check your configuration.
   
   I noticed the BitBucket server's log contains: GET /rest/api/latest/user 
HTTP/1.1" 
   
   <img width="767" alt="1" 
src="https://user-images.githubusercontent.com/3602079/231921487-b968199b-06ff-4179-99b9-c73d7c2c3785.png";>
   
   But according to the BitBucket API doc, it should be  /rest/api/latest/users
   
   FYI : 
https://developer.atlassian.com/server/bitbucket/rest/v809/api-group-system-maintenance/#api-api-latest-users-get
   
   
   
   ### What do you expect to happen
   
   Add the Bitbucket connection successfully.
   
   
   ### How to reproduce
   
   Create a Bitbucket connection 
   Endpoint URL: http://testdomain.com:port/rest/api/latest
   
   and then click the Test connection button.
   
   
   ### Anything else
   
   
https://github.com/apache/incubator-devlake/blob/v0.15.0/plugins/bitbucket/api/connection.go#L61
   
   I think it should be 
   res, err := apiClient.Get("users", nil, nil)
   in Line 61
   
   
   ### Version
   
   v0.15.0
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to