mindlesscloud opened a new pull request, #3099:
URL: https://github.com/apache/incubator-devlake/pull/3099
# Summary
The argument `body` was shadowed by another variable with an identical name.
The method `apiClient.Do` would always receive an empty `[]byte` which turns
into a string request body `null`. To fix the problem, the variable `body` was
renamed to `respBody` which was supposed to hold the response body.
```go
func (apiClient *ApiAsyncClient) DoAsync(..., body interface{},...) {
...
request = func() errors.Error {
...
var body []byte
res, err = apiClient.Do(method, path, query, body, header)
...
}
...
}
```
### Does this close any open issues?
Closes #3098
### Screenshots
Include any relevant screenshots here.
### Other Information
Any other information that is important to this PR.
--
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]