I thought primary amines and nitrous acid give azides?
They give diazonium salts and they are relatively stable if they are aromatic amines.
If they are aliphatic 1° amines, however, they tend to lose N
2 leaving a carbocation to pick up some water, eliminate a proton or pick up a halide.
N
2 +