mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #4856] [Bug]: Can't add external nodes #3387
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#3387
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @MACTEP434 on GitHub (Jun 3, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4856
Describe the bug
When i add external node, test connection is ok but when push save i have error message "invalid input"
How to reproduce the problem
Expected behavior
No response
Actual behavior
No response
Relevant logs
Screenshots
No response
3x-ui version
3.2.6
Xray-core version
26.6.1
How did you install 3x-ui?
Docker / Docker Compose
Operating system
Debian 13
Which parts of the panel are affected?
No response
Browser (only if it is a UI bug)
No response
Is the panel behind a reverse proxy or CDN?
None
Before submitting
@github-actions[bot] commented on GitHub (Jun 3, 2026):
Thanks for the report.
What's happening under the hood
The Test Connection button only validates the address and port fields before hitting POST /panel/api/nodes/test, which does a bare bind with no struct validation. The node can be probed successfully without an API token — Probe() sends the Authorization header only if the token is non-empty (web/service/node.go:496-498).
The Save button goes through a stricter path:
When validation fails, the backend returns { success: false, msg: 'request body failed validation', obj: { issues: [...] } }. The frontend shows the msg value as an error toast — that is likely the error you are seeing.
How to find the exact cause
Most common causes for test-passes-but-save-fails
Could you paste the full JSON response body from the failed POST /panel/api/nodes/add request (Network tab > Response)? That will show exactly which field is being rejected.
@Dronneo commented on GitHub (Jun 3, 2026):
Такое же поведение на Ubuntu 24. У меня решилось сменой "проверка TLS" с "Проверять (стандартный СА)" на "Закрепить сертификат (SHA-256)" и дальнейшим нажатием "Получить".
@MHSanaei commented on GitHub (Jun 3, 2026):
Duplicate
Already fixed