hezyin opened a new issue, #4302: URL: https://github.com/apache/incubator-devlake/issues/4302
### 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 Users report Jira tasks failures due to `collectAccounts` subtask failures. `collectAccounts` got HTTP 400 bad request error when GET api/2/user, the error message is ``` Wraps: (2) Http DoAsync error calling [GET api/2/user]. Response: {"errorMessages":["The 'accountId' query parameter needs to be provided"],"errors":{}} (400) ``` See below for an example failure log: ``` ime="2023-02-02 19:52:18" level=info msg=" [pipeline service] [pipeline #132] [task #18366] executing subtask extractIssues" time="2023-02-02 19:52:18" level=info msg=" [pipeline service] [pipeline #132] [task #18366] [extractIssues] extract Issues, connection_id=1, board_id=36" time="2023-02-02 19:52:18" level=info msg=" [pipeline service] [pipeline #132] [task #18366] [extractIssues] get data from _raw_jira_api_issues where params={"ConnectionId":1,"BoardId":36} and got 654" time="2023-02-02 19:52:18" level=info msg=" [pipeline service] [pipeline #132] [task #18366] [extractIssues] finished records: 1" time="2023-02-02 19:52:19" level=info msg=" [pipeline service] [pipeline #132] [task #18366] [extractIssues] finished records: 1000" time="2023-02-02 19:52:19" level=info msg=" [pipeline service] [pipeline #132] [task #18366] [extractIssues] finished records: 2000" time="2023-02-02 19:52:19" level=info msg=" [pipeline service] [pipeline #132] [task #18366] [extractIssues] finished records: 3000" time="2023-02-02 19:52:19" level=info msg=" [pipeline service] [pipeline #132] [task #18366] [extractIssues] finished records: 4000" time="2023-02-02 19:52:19" level=info msg=" [pipeline service] [pipeline #132] [task #18366] [extractIssues] finished records: 5000" time="2023-02-02 19:52:19" level=info msg=" [pipeline service] [pipeline #132] [task #18366] [extractIssues] finished records: 6000" time="2023-02-02 19:52:19" level=info msg=" [pipeline service] [pipeline #132] [task #18366] [extractIssues] finished records: 7000" time="2023-02-02 19:52:19" level=info msg=" [pipeline service] [pipeline #132] [task #18366] finished step: 8 / 28" time="2023-02-02 19:52:19" level=info msg=" [pipeline service] [pipeline #132] [task #18366] executing subtask collectIssueChangelogs" time="2023-02-02 19:52:19" level=info msg=" [pipeline service] [pipeline #132] [task #18366] [collectIssueChangelogs] start api collection" time="2023-02-02 19:52:19" level=info msg=" [pipeline service] [pipeline #132] [task #18366] [collectIssueChangelogs] end api collection without error" time="2023-02-02 19:52:19" level=info msg=" [pipeline service] [pipeline #132] [task #18366] finished step: 9 / 28" time="2023-02-02 19:52:19" level=info msg=" [pipeline service] [pipeline #132] [task #18366] executing subtask extractIssueChangelogs" time="2023-02-02 19:52:19" level=info msg=" [pipeline service] [pipeline #132] [task #18366] [extractIssueChangelogs] get data from _raw_jira_api_issue_changelogs where params={"ConnectionId":1,"BoardId":36} and got 293" time="2023-02-02 19:52:19" level=info msg=" [pipeline service] [pipeline #132] [task #18366] [extractIssueChangelogs] finished records: 1" time="2023-02-02 19:52:19" level=info msg=" [pipeline service] [pipeline #132] [task #18366] [extractIssueChangelogs] finished records: 1000" time="2023-02-02 19:52:19" level=info msg=" [pipeline service] [pipeline #132] [task #18366] finished step: 10 / 28" time="2023-02-02 19:52:19" level=info msg=" [pipeline service] [pipeline #132] [task #18366] executing subtask collectAccounts" time="2023-02-02 19:52:19" level=info msg=" [pipeline service] [pipeline #132] [task #18366] [collectAccounts] collect account" time="2023-02-02 19:52:19" level=info msg=" [pipeline service] [pipeline #132] [task #18366] [collectAccounts] start api collection" time="2023-02-02 19:52:20" level=warning msg=" [pipeline service] [pipeline #132] [task #18366] retry #0 calling api/2/user caused by: Http DoAsync error calling [GET api/2/user]. Response: {"errorMessages":["The 'accountId' query parameter needs to be provided"],"errors":{}} (400)" time="2023-02-02 19:52:20" level=info msg=" [pipeline service] [pipeline #132] [task #18366] [collectAccounts] finished records: 1" time="2023-02-02 19:52:23" level=info msg=" [pipeline service] [pipeline #132] [task #18366] [collectAccounts] finished records: 10" time="2023-02-02 19:52:25" level=warning msg=" [pipeline service] [pipeline #132] [task #18366] retry #1 calling api/2/user caused by: Http DoAsync error calling [GET api/2/user]. Response: {"errorMessages":["The 'accountId' query parameter needs to be provided"],"errors":{}} (400)" time="2023-02-02 19:52:26" level=info msg=" [pipeline service] [pipeline #132] [task #18366] [collectAccounts] finished records: 18" time="2023-02-02 19:52:30" level=info msg=" [pipeline service] [pipeline #132] [task #18366] [collectAccounts] finished records: 27" time="2023-02-02 19:52:30" level=warning msg=" [pipeline service] [pipeline #132] [task #18366] retry #2 calling api/2/user caused by: Http DoAsync error calling [GET api/2/user]. Response: {"errorMessages":["The 'accountId' query parameter needs to be provided"],"errors":{}} (400)" time="2023-02-02 19:52:33" level=info msg=" [pipeline service] [pipeline #132] [task #18366] [collectAccounts] finished records: 35" time="2023-02-02 19:52:35" level=error msg=" [pipeline service] [pipeline #132] [task #18366] retry exceeded 3 times calling api/2/user (400) Wraps: (2) Http DoAsync error calling [GET api/2/user]. Response: {"errorMessages":["The 'accountId' query parameter needs to be provided"],"errors":{}} (400) Error types: (1) *hintdetail.withDetail (2) *errors.errorString" time="2023-02-02 19:52:36" level=info msg=" [pipeline service] [pipeline #132] [task #18366] [collectAccounts] finished records: 43" time="2023-02-02 19:52:39" level=info msg=" [pipeline service] [pipeline #132] [task #18366] [collectAccounts] finished records: 52" time="2023-02-02 19:52:40" level=error msg=" [pipeline service] [pipeline #132] [task #18366] subtask collectAccounts ended unexpectedly Wraps: (2) retry exceeded 3 times calling api/2/user (400) Error types: (1) *hintdetail.withDetail (2) *errors.errorString" ``` ### What do you expect to happen No HTTP 400 bad request error. ### How to reproduce I wasn't able to reproduce this error with my Jira instance/board. So it may have to do with the user's Jira configuration, token permission, board configuration, etc. Users are on v0.15.0-rc5. ### Anything else _No response_ ### Version v0.15.0 ### Are you willing to submit PR? - [ ] 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]
