> ## Documentation Index
> Fetch the complete documentation index at: https://upstash.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# WRONGPASS invalid or missing auth token

### Symptom

The database rejects your request with an error similar to:

```
UpstashError: WRONGPASS invalid or missing auth token
```

### Diagnosis

The server rejects your request because the auth token is missing or invalid.

Most likely you have forgotten to set it in your environment variables, or you
are using a wrong token.

The connection password can only be used in traditional Redis clients. If you
want to connect over HTTP, you need to use the HTTP auth token.

### Solution

1. Check that you have set the `UPSTASH_REDIS_REST_TOKEN` in your environment
   variables and it is loaded correctly by your application at runtime.

2. Make sure you are using the correct HTTP auth token. You can copy the correct
   client configuration from the
   [Upstash console](https://console.upstash.com/redis) by copying the snippet
   from the `Connect to your database` -> `@upstash/redis` tab

<img src="https://mintcdn.com/upstash/EFJsv57gEAWfBXNv/img/troubleshooting/rest/console_upstash_redis.png?fit=max&auto=format&n=EFJsv57gEAWfBXNv&q=85&s=6209760b747138fc787943506a201252" alt="" width="1981" height="730" data-path="img/troubleshooting/rest/console_upstash_redis.png" />

Or scroll further down to the `REST API` section and copy the
`UPSTASH_REDIS_REST_URL` and `UPSTASH_REDIS_REST_TOKEN` from there.

<img src="https://mintcdn.com/upstash/EFJsv57gEAWfBXNv/img/troubleshooting/rest/console_rest_api.png?fit=max&auto=format&n=EFJsv57gEAWfBXNv&q=85&s=0f64cdc01036d9144a9f35d544f6baf3" alt="" width="1981" height="764" data-path="img/troubleshooting/rest/console_rest_api.png" />
