# environment_mismatch

> The test environment points the wrong way

- Status: 409 Conflict
- Returned by: The account connection (/oauth)
- Retry (`retryWhen`): `later`
- Did anything happen? (`outcome`): `none` (It did not happen)
- The account connection
- Page in the portal: https://developers.rivr.io/errors/environment_mismatch
- Try it: `GET https://developers.rivr.io/errors/simulate/environment_mismatch` answers with the code's exact wire form; `?succeedAfter=N&attempt=K` gives a 200 once `attempt` passes `N`

## What it means

The sandbox's approval first checks that the test environment points at its own resources. This time it didn't, so nothing was approved. The fault is on Rivr's side.

## What your system does

Contact Rivr.

## Is it worth retrying?

Only once the situation has changed, see above. Sending the same call straight away gets the same answer.

`retryWhen`: `later`. The same request can succeed, but only once something outside it has changed: another payment has finished, a permission has been given or Rivr has switched something on. Sending it again straight away gets the same answer. Follow the order or wait for the change.

## Did anything happen?

`outcome`: `none`. **It did not happen.** This call did not do what you asked for and changed nothing else that you can see or that concerns money. Where the code has an `outcomeNote`, it takes precedence.

## Example: The account connection (/oauth)

```http
HTTP/1.1 409 Conflict
Content-Type: application/json
Cache-Control: no-store

{
  "code": "environment_mismatch"
}
```

The `title`, `detail`, `message` and `error_description` texts are exactly as the API writes them today.
