Node HandbookNODE HANDBOOK
Credentials

v2rayN: invalid UUID

This is a local validation failure. The core read the node, tried to interpret its identifier, and refused to build the outbound at all. Nothing was sent, so nothing about the network or the server is implicated.

Last updated: 2026-11-24 · Every error string on this page was reproduced on a real client.

What the identifier is

VMess and VLESS do not use a username and password. They use a single identifier, conventionally a UUID: a 128-bit value written in a fixed textual form with five groups separated by hyphens, in the pattern eight, four, four, four, and twelve hexadecimal characters.

That form is not cosmetic. The core parses it into sixteen bytes, and the server must have been configured with the same sixteen bytes. Any deviation from the textual pattern fails at parse time, before a connection exists.

The failure is therefore total for that node: the outbound cannot be constructed, so the node is unusable regardless of the server being healthy, the port being open, and the path being clear.

The shapes that fail

ShapeWhy it fails
Too few or too many characters in a groupThe byte count does not work out to sixteen
Hyphens missing entirelySome parsers accept a bare 32-character hex string, many do not
Non-hexadecimal charactersThe value is not base sixteen; a letter beyond F appears
A truncated copyThe tail was lost when the string was pasted
Whitespace or a quote includedThe parser receives a character it cannot decode
A generated value that is not a UUID at allConverters sometimes emit a name or a hash in that field

The fourth row deserves emphasis because it is invisible by eye. A UUID copied from a narrow column in a chat window or a terminal with line wrapping loses characters silently, and the result looks plausible at a glance. Length is the fastest check: a canonical UUID is thirty-six characters including hyphens.

Validate before editing anything

Two checks, both instant, and they separate a malformed value from a wrong-but-valid one.

echo -n '<the-id>' | wc -c
echo -n '<the-id>' | grep -icE '^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$'

The first prints the length, which should be thirty-six. The second prints one if the pattern matches, case-insensitively.

A value that passes both is structurally valid. If the node still fails, the id does not match what the server was configured with — a completely different problem, and one no amount of local validation can detect.

The trap: generating a replacement

When the id is malformed, the instinct is to generate a new one. That produces a well-formed UUID which the server has never heard of, and the failure changes from a parse error to an authentication failure — often a silent one, where the connection succeeds at the transport layer and then carries nothing.

The identifier is shared state. It is not a local setting like a port or a routing rule. Its value must be the one the server was configured with, which means the only correct source is the node's original parameters: the subscription, the provider's dashboard, or the configuration the server operator published.

So the fix for a malformed id is always to re-copy it from the source, never to produce a new one. Regenerating is correct only when you are deploying a new server and setting both ends yourself.

Why automatic imports get it wrong

Converters and subscription transformers parse one format and emit another. When the source format carries the identifier under a different name, or stores it base64-encoded inside a combined string, a transformer that mis-splits the fields can place a fragment in the id position.

The signature is that the malformed value resembles a piece of a longer string, or that several nodes from the same import share the same broken pattern. If that matches, the problem is the conversion step, not the individual node — and editing one node fixes one node while the next update regenerates the fault.

In that case, converting with a different tool, or importing the subscription in its native format, addresses the cause rather than the symptom.

What not to conclude

A malformed identifier says nothing about the server being reachable, the port being correct, or the subscription being expired. Those are independent facts. Pairing this message with "the provider is down" in the same report describes two unrelated observations, and the parse error prevented the second from being tested at all.

It also cannot be caused by the network. Parsing happens locally, on text, before any socket is opened.

Frequently asked

Does a valid UUID mean the credentials are correct?

No. It means the value is structurally well formed. Whether the server accepts it depends on the server's configuration, which the client cannot verify locally. A well-formed id that the server does not know produces an authentication failure rather than a parse error.

Can I generate a new UUID if mine is broken?

Only if you also configure the server with it. Generating one on the client alone produces a well-formed identifier the server does not recognise, which changes a clear parse error into a silent authentication failure.

Why is my id 32 characters with no hyphens?

Some formats store the raw hex without separators. Some parsers accept it and many do not. If the client rejects it, insert the hyphens in the standard eight-four-four-four-twelve pattern rather than regenerating.

Is this related to the encryption setting?

They are separate fields, but both are validated when the outbound is built. Fix the id first, since a parse error stops everything; the encryption field is evaluated after.

The node worked yesterday with the same value.

Then the value did not change — the subscription did. Check whether an update replaced the node definition, and compare the current field against the provider's dashboard rather than against your memory of it.