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

   ### 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
   
   Connection config test api used to report user friendly error message in 
release-0.20, e.g. a suggestion for correct url for 404 error, wrong user name 
and password for 401 error.
   After update to 0.21 it returns raw error message from upstream, and status 
code become 400, even upstream error is 404 or 401.
   
   v0.20 
   
![img_v3_028b_795cef11-db80-4fb2-8724-0f6886bca99g](https://github.com/apache/incubator-devlake/assets/863493/6723e962-4ff4-4269-9957-6b5a541be076)
   
   v0.21
   
![img_v3_028b_cbda0a1e-10cb-4f9f-afa6-5211bf0dbd0g](https://github.com/apache/incubator-devlake/assets/863493/5e487f5f-58a6-4eb9-aafd-a3437d7fcce5)
   
   
   ### What do you expect to happen
   
   Same behavior as release-0.20
   
   ### How to reproduce
   
   Test a invalid connection options with plugin connection test api (invalid 
endpoint):
   
   ```
   curl -X 'POST' \
     'http://localhost:4000/plugins/jira/test' \
     -H 'accept: application/json' \
     -H 'Content-Type: application/json' \
     -d '{
     "authMethod": "BasicAuth",
     "endpoint": "https://merico.atlassian.net/st";,
     "password": "string",
     "proxy": "",
     "rateLimitPerHour": 11110,
     "username": "[email protected]"
   }'
   ```
   
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   v0.21
   
   ### 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]

Reply via email to