[GH-ISSUE #4794] [Bug]: invalid input when adding node #3329

Closed
opened 2026-10-31 20:31:41 +07:00 by bsakaguchi · 8 comments
Owner

Originally created by @mshahr1 on GitHub (Jun 2, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4794

Describe the bug

When I try to add node to panel, everything works fine and test connection is ok but when I try to save it says that invalid input

How to reproduce the problem

adding node

Expected behavior

No response

Actual behavior

No response

Relevant logs


Screenshots

No response

3x-ui version

3.2.6

Xray-core version

26.4.25

How did you install 3x-ui?

install.sh script

Operating system

Ubuntu 24.04

Which parts of the panel are affected?

Frontend (UI / panel pages)

Browser (only if it is a UI bug)

No response

Is the panel behind a reverse proxy or CDN?

None

Before submitting

  • I searched existing issues and this bug has not been reported.
  • I am running the latest released version of 3x-ui (or have verified the bug still exists on it).
  • This bug report is written in English.
  • I have redacted any sensitive data (tokens, real domains, client UUIDs).
Originally created by @mshahr1 on GitHub (Jun 2, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4794 ### Describe the bug When I try to add node to panel, everything works fine and test connection is ok but when I try to save it says that invalid input ### How to reproduce the problem adding node ### Expected behavior _No response_ ### Actual behavior _No response_ ### Relevant logs ```shell ``` ### Screenshots _No response_ ### 3x-ui version 3.2.6 ### Xray-core version 26.4.25 ### How did you install 3x-ui? install.sh script ### Operating system Ubuntu 24.04 ### Which parts of the panel are affected? Frontend (UI / panel pages) ### Browser (only if it is a UI bug) _No response_ ### Is the panel behind a reverse proxy or CDN? None ### Before submitting - [x] I searched [existing issues](../issues?q=is%3Aissue) and this bug has not been reported. - [x] I am running the latest released version of 3x-ui (or have verified the bug still exists on it). - [x] This bug report is written in English. - [x] I have redacted any sensitive data (tokens, real domains, client UUIDs).
bsakaguchi 2026-10-31 20:31:41 +07:00
Author
Owner

@github-actions[bot] commented on GitHub (Jun 2, 2026):

Thanks for the report! To help diagnose this, a few questions:

  1. What is the exact error message? A screenshot of the toast/notification would be very helpful.
  2. Browser console errors — please open DevTools (F12 → Console tab), reproduce the save failure, and paste any red errors here.
  3. What values are you entering? In particular:
    • The port field (must be 1–65535)
    • The TLS verify mode you selected
    • Whether the API token field is filled in

Likely causes based on the code:

  • The Name, Address, or API token fields are empty or contain only whitespace after trimming.
  • The Port field is empty or out of range (1–65535) — note that the "Test connection" button only validates address and port for connectivity, so a save can still fail if other fields are invalid.
  • A form field has an unexpected value that fails schema validation (e.g. if TLS verify mode is blank).

If you can share a screenshot of the error message and the browser console output, it will make it much easier to pinpoint the exact cause.

<!-- gh-comment-id:4599016011 --> @github-actions[bot] commented on GitHub (Jun 2, 2026): Thanks for the report\! To help diagnose this, a few questions: 1. **What is the exact error message?** A screenshot of the toast/notification would be very helpful. 2. **Browser console errors** — please open DevTools (F12 → Console tab), reproduce the save failure, and paste any red errors here. 3. **What values are you entering?** In particular: - The **port** field (must be 1–65535) - The **TLS verify mode** you selected - Whether the **API token** field is filled in **Likely causes based on the code:** - The **Name**, **Address**, or **API token** fields are empty or contain only whitespace after trimming. - The **Port** field is empty or out of range (1–65535) — note that the "Test connection" button only validates address and port for connectivity, so a save can still fail if other fields are invalid. - A form field has an unexpected value that fails schema validation (e.g. if TLS verify mode is blank). If you can share a screenshot of the error message and the browser console output, it will make it much easier to pinpoint the exact cause.
Author
Owner

@tvmoy2023 commented on GitHub (Jun 2, 2026):

I have the same problem, I can't add a node. Even with the new 3x-ui

<!-- gh-comment-id:4599478997 --> @tvmoy2023 commented on GitHub (Jun 2, 2026): I have the same problem, I can't add a node. Even with the new 3x-ui
Author
Owner

@sanekbel commented on GitHub (Jun 2, 2026):

Image The same problem on 3.2.6 after updating today.
<!-- gh-comment-id:4599672187 --> @sanekbel commented on GitHub (Jun 2, 2026): <img width="1284" height="1480" alt="Image" src="https://github.com/user-attachments/assets/e1f2488c-2130-4d6a-a8db-b59728a425e6" /> The same problem on 3.2.6 after updating today.
Author
Owner

@blackmady commented on GitHub (Jun 2, 2026):

Looking forward to a solution to this problem

<!-- gh-comment-id:4601088537 --> @blackmady commented on GitHub (Jun 2, 2026): Looking forward to a solution to this problem
Author
Owner

@cubatic45 commented on GitHub (Jun 2, 2026):

The same problem on 3.2.6 after updating today.

<!-- gh-comment-id:4601204479 --> @cubatic45 commented on GitHub (Jun 2, 2026): The same problem on 3.2.6 after updating today.
Author
Owner

@MHSanaei commented on GitHub (Jun 2, 2026):

Fixed in 02043a43.

Root cause: the node form's pinnedCertSha256 field is only rendered for the pin TLS mode. With any other mode (the default verify), Ant Design unmounted the field and dropped it from the submitted values, so the Zod form schema rejected the missing string — surfacing as "invalid input" even though the connection test passed.

The field is now optional with a default, so saving works in every TLS mode. The save flow also runs the connection test first and only persists when the probe is online (enforced on the backend too), and the http scheme now forces TLS verification to skip.

<!-- gh-comment-id:4602143721 --> @MHSanaei commented on GitHub (Jun 2, 2026): Fixed in 02043a43. Root cause: the node form's `pinnedCertSha256` field is only rendered for the `pin` TLS mode. With any other mode (the default `verify`), Ant Design unmounted the field and dropped it from the submitted values, so the Zod form schema rejected the missing string — surfacing as "invalid input" even though the connection test passed. The field is now optional with a default, so saving works in every TLS mode. The save flow also runs the connection test first and only persists when the probe is online (enforced on the backend too), and the http scheme now forces TLS verification to skip.
Author
Owner

@vadimkulikovofficial commented on GitHub (Jun 2, 2026):

And where is the solution to fix this? Step by step!

<!-- gh-comment-id:4602767121 --> @vadimkulikovofficial commented on GitHub (Jun 2, 2026): And where is the solution to fix this? Step by step!
Author
Owner

@alexDoron073 commented on GitHub (Jun 2, 2026):

And where is the solution to fix this? Step by step!

он приложил коммит в котором пофиксил проблему
если коротко, из интерфейса никак не решить, можешь забилдить версию из коммита который он приложил, а можешь ждать нового релиза, в следующем будет исправлено

<!-- gh-comment-id:4602816756 --> @alexDoron073 commented on GitHub (Jun 2, 2026): > And where is the solution to fix this? Step by step! он приложил коммит в котором пофиксил проблему если коротко, из интерфейса никак не решить, можешь забилдить версию из коммита который он приложил, а можешь ждать нового релиза, в следующем будет исправлено
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#3329
No description provided.