# invalid target

`TNL_TARGET_INVALID`

tnl rejected the target before contacting the local service.

the target configuration is invalid

```text
+--[ where it stopped ]----------------------------------------+
|                                                              |
|  tnl                                                         |
|     |                                                        |
|     v                                                        |
|  target configuration                                        |
|     |                                                        |
|     x  invalid host or port                                  |
|  local service (not contacted)                               |
|                                                              |
+--------------------------------------------------------------+
```

## what happened

- the target port is missing or outside the valid range
- the target contains a path, query, fragment, credentials, or whitespace
- the target uses HTTPS or a host other than `localhost`, a `127.x.x.x` address, or `::1`

## if you run tnl

- use a bare port such as `3000`, `localhost:3000`, or an HTTP loopback origin
- run the command again with the corrected target

help: https://tnl.dev/e/config
