You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by he...@apache.org on 2023/05/02 17:56:41 UTC

[incubator-devlake] branch main updated: fix: Change failed connection test status from 500 to 400 (#5076)

This is an automated email from the ASF dual-hosted git repository.

hez pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/main by this push:
     new 54960df37 fix: Change failed connection test status from 500 to 400 (#5076)
54960df37 is described below

commit 54960df37c80a53bb7a242311ea8a92be12f6154
Author: Camille Teruel <ca...@gmail.com>
AuthorDate: Tue May 2 19:56:36 2023 +0200

    fix: Change failed connection test status from 500 to 400 (#5076)
    
    Co-authored-by: Camille Teruel <ca...@meri.co>
---
 backend/server/services/remote/plugin/connection_api.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backend/server/services/remote/plugin/connection_api.go b/backend/server/services/remote/plugin/connection_api.go
index fc21fe206..81b49f5c7 100644
--- a/backend/server/services/remote/plugin/connection_api.go
+++ b/backend/server/services/remote/plugin/connection_api.go
@@ -33,7 +33,7 @@ func (pa *pluginAPI) TestConnection(input *plugin.ApiResourceInput) (*plugin.Api
 			Success: false,
 			Message: err.Error(),
 		}
-		return &plugin.ApiResourceOutput{Body: body, Status: 500}, nil
+		return &plugin.ApiResourceOutput{Body: body, Status: 400}, nil
 	} else {
 		body := shared.ApiBody{Success: true}
 		return &plugin.ApiResourceOutput{Body: body, Status: 200}, nil