Answer
If {{name}} exists in Base Environment but is absent from the selected environment, Insomnia normally resolves it using the Base Environment value and sends the request. It does not fail outright solely because the selected environment omits the variable. If the variable is defined nowhere, behavior depends on your Insomnia version and the request field: it may transmit the literal placeholder {{name}} or an empty string.
Likely explanation
Insomnia treats environments as layered lookups: selected environment first, then Base Environment as a fallback. A same-named key in the selected environment overrides Base; Base is a default layer, not a merge target for unrelated keys.
Confirmed facts
- Selected environment variables take precedence over Base Environment variables.
- A variable present only in Base resolves to its Base value when the active environment omits it.
- Missing variables do not automatically abort the request in most Insomnia versions.
- Exact behavior for fully undefined variables is version-sensitive and can differ between URLs, headers, and bodies.
Steps for this case
- Open the currently selected environment and confirm the variable is not defined there.
- Add the variable to Base Environment with the expected fallback value.
- Send a request containing
{{name}} in the URL, header, or body. - Open Insomnia's developer console or point the request at an external request bin to inspect the actual outgoing value.
- Repeat with a variable defined in neither environment to see whether your version sends the literal placeholder or an empty string.
Assumptions and uncertainty
This answer assumes you are using Insomnia Core or a recent Insomnia desktop release. Exact unresolved-variable behavior may have changed after the Kong acquisition and differs across Insomnia 7, 8, and 2024+ releases. Treat the literal-placeholder-versus-empty-string outcome as unverified until you check your installed version.
Missing diagnostic detail
Which Insomnia version are you running? The version determines whether an undefined variable resolves to {{name}} literally or to an empty string, and whether any strict-resolution setting exists.