Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection add should throw proper error instead of InternalError #8792

Open
ramya-c3 opened this issue Feb 13, 2025 · 0 comments
Open

Connection add should throw proper error instead of InternalError #8792

ramya-c3 opened this issue Feb 13, 2025 · 0 comments
Labels

Comments

@ramya-c3
Copy link

Environment info

Actual behavior

1.# /usr/local/bin/noobaa-cli connection add --name conee3 --notification_protocol http --agent_request_object '{"host":"localhost","port":8080,"timeout":100}' --request_options_object '{"auth":"vYoaR9c9tU1pjmv+2wn2I9zO","path":"/webhook"}' 2>/dev/null
{
"error": {
"code": "InternalError",
"message": "The server encountered an internal error. Please retry the request",
"cause": "Error: configuration file already exists\n at Object.create_config_file (/usr/local/noobaa-core/src/util/native_fs_utils.js:316:25)\n at async ConfigFS.create_connection_config_file (/usr/local/noobaa-core/src/sdk/config_fs.js:1364:9)\n at async Object.add_connect_file (/usr/local/noobaa-core/src/util/notifications_util.js:599:5)\n at async connection_management (/usr/local/noobaa-core/src/cmd/manage_nsfs.js:752:20)\n at async main (/usr/local/noobaa-core/src/cmd/manage_nsfs.js:78:13)"
}
}

Expected behavior

  1. Error should be proper

Steps to reproduce

More information - Screenshots / Logs / Other output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant