﻿<head><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4357510538660394"
     crossorigin="anonymous"></script></head># The code does not match this sign-in

> Canonical HTML: https://screenrig.ai/problems/agent-connection-code-mismatch

HTTP 400 · `agent_connection_code_mismatch`

## What it means

The API answers with HTTP 400 Bad Request and an `application/problem+json` document when the condition is The code does not match this sign-in. The document's `type` member is `https://screenrig.ai/problems/agent-connection-code-mismatch`, the address of this page, and its `code` member is `agent_connection_code_mismatch`.

## What to do

Compare the code with the one screenrig login printed in the terminal and enter it again. After five mismatches the sign-in expires; run screenrig login again.

## Should you retry?

The `retryable` member appears only on HTTP 5xx problems, so this one has none. Follow the steps under What to do before sending the request again.

## Example response

Most routes answer with the error in the first entry of `errors`, and the document members `instance` and `request_id` beside it. The `type`, `code`, `title` and `status` of this problem type are fixed; `detail` varies per request, and `hint` is the registry default unless the handler sets a more specific one.

~~~http
HTTP/1.1 400 Bad Request
Content-Type: application/problem+json

{
  "errors": [
    {
      "status": 400,
      "code": "agent_connection_code_mismatch",
      "type": "https://screenrig.ai/problems/agent-connection-code-mismatch",
      "title": "The code does not match this sign-in",
      "detail": "What went wrong in this request.",
      "hint": "Compare the code with the one screenrig login printed in the terminal and enter it again. After five mismatches the sign-in expires; run screenrig login again."
    }
  ],
  "instance": "INSTANCE",
  "request_id": "REQUEST_ID",
  "server_time": "2026-01-01T00:00:00Z"
}
~~~

## Player action

This problem defines no Player action class. It belongs to a project, pairing or account flow that an agent or the dashboard drives.

## Reference

| Field | Value |
| --- | --- |
| Code | `agent_connection_code_mismatch` |
| HTTP status | `400 Bad Request` |
| Type | `https://screenrig.ai/problems/agent-connection-code-mismatch` |
| Player action | `none` |

- [All problem types](https://screenrig.ai/problems)
- [API reference](https://screenrig.ai/docs/api#problems)
- [Problem registry YAML](https://screenrig.ai/docs/api/problems.yaml)
