# Is Instagram giving you a headache?

You were probably searching for a fix for that obscure Instagram error. But maybe you found something better.

Stop debugging. Start coordinating.

Qordinate acts as your intelligent layer between apps like Instagram and your life. We handle the messy API connections and coordination so you can focus on what actually matters.

# Instagram Integration Terminal Errors

## Authentication Errors

### `190`

```
HTTP 400 Bad Request
{
  "error": {
    "message": "Invalid OAuth access token.",
    "type": "OAuthException",
    "code": 190,
    "error_subcode": 463,
    "error_user_title": "Invalid Access Token",
    "error_user_msg": "The access token is invalid.",
    "fbtrace_id": "ABC123"
  }
}
```

### `102`

```
HTTP 400 Bad Request
{
  "error": {
    "message": "Session key invalid",
    "type": "OAuthException",
    "code": 102,
    "fbtrace_id": "ABC123"
  }
}
```

## API Errors

### `100`

```
HTTP 400 Bad Request
{
  "error": {
    "message": "Invalid parameter",
    "type": "OAuthException",
    "code": 100,
    "error_subcode": 2202,
    "error_user_title": "Invalid Media ID",
    "error_user_msg": "The media ID is invalid.",
    "fbtrace_id": "ABC123"
  }
}
```

### `200`

```
HTTP 403 Forbidden
{
  "error": {
    "message": "Permissions error",
    "type": "OAuthException",
    "code": 200,
    "error_subcode": 2203,
    "error_user_title": "Permission Denied",
    "error_user_msg": "You do not have permission to perform this action.",
    "fbtrace_id": "ABC123"
  }
}
```

### `4`

```
HTTP 429 Too Many Requests
{
  "error": {
    "message": "Application request limit reached",
    "type": "OAuthException",
    "code": 4,
    "fbtrace_id": "ABC123"
  }
}
```

## SDK-Specific Errors

### Python SDK: `instagram.InstagramAPIError`

```python
Traceback (most recent call last):
  File "instagram_script.py", line 10, in <module>
    api = InstagramAPI(access_token='invalid_token')
  File "/usr/local/lib/python3.9/site-packages/instagram/client.py", line 45, in __init__
    api.authenticate()
  File "/usr/local/lib/python3.9/site-packages/instagram/client.py", line 78, in authenticate
    raise InstagramAPIError('Invalid OAuth access token.', 190)
instagram.InstagramAPIError: Invalid OAuth access token. (190)
```

### Node.js SDK: `InstagramAPIError`

```javascript
InstagramAPIError: Invalid OAuth access token.
    at InstagramClient._request (/node_modules/instagram-api/dist/client.js:234:19)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async InstagramClient.getMedia (/node_modules/instagram-api/dist/api.js:123:12)
    at async main (/app/index.js:23:18)
{
  statusCode: 400,
  body: {
    error: {
      message: 'Invalid OAuth access token.',
      type: 'OAuthException',
      code: 190,
      error_subcode: 463,
      fbtrace_id: 'ABC123'
    }
  }
}
```

## Instagram-Specific Errors

### `2200`

```
HTTP 400 Bad Request
{
  "error": {
    "message": "Invalid media ID",
    "type": "OAuthException",
    "code": 100,
    "error_subcode": 2200,
    "error_user_title": "Invalid Media ID",
    "error_user_msg": "The media ID is invalid.",
    "fbtrace_id": "ABC123"
  }
}
```

### `2201`

```
HTTP 400 Bad Request
{
  "error": {
    "message": "Invalid media type",
    "type": "OAuthException",
    "code": 100,
    "error_subcode": 2201,
    "error_user_title": "Invalid Media Type",
    "error_user_msg": "The media type is invalid.",
    "fbtrace_id": "ABC123"
  }
}
```

### `2202`

```
HTTP 400 Bad Request
{
  "error": {
    "message": "Invalid user ID",
    "type": "OAuthException",
    "code": 100,
    "error_subcode": 2202,
    "error_user_title": "Invalid User ID",
    "error_user_msg": "The user ID is invalid.",
    "fbtrace_id": "ABC123"
  }
}
```

## Content Errors

### `2203`

```
HTTP 403 Forbidden
{
  "error": {
    "message": "Media not visible",
    "type": "OAuthException",
    "code": 200,
    "error_subcode": 2203,
    "error_user_title": "Media Not Visible",
    "error_user_msg": "This media is not visible.",
    "fbtrace_id": "ABC123"
  }
}
```

### `2204`

```
HTTP 400 Bad Request
{
  "error": {
    "message": "Invalid caption",
    "type": "OAuthException",
    "code": 100,
    "error_subcode": 2204,
    "error_user_title": "Invalid Caption",
    "error_user_msg": "The caption is invalid.",
    "fbtrace_id": "ABC123"
  }
}
```

## Rate Limiting

### `17`

```
HTTP 429 Too Many Requests
{
  "error": {
    "message": "User request limit reached",
    "type": "OAuthException",
    "code": 17,
    "fbtrace_id": "ABC123"
  }
}
```

### `32`

```
HTTP 429 Too Many Requests
{
  "error": {
    "message": "Page request limit reached",
    "type": "OAuthException",
    "code": 32,
    "fbtrace_id": "ABC123"
  }
}
```

## Webhook Errors

### `2300`

```
HTTP 400 Bad Request
{
  "error": {
    "message": "Invalid webhook URL",
    "type": "OAuthException",
    "code": 100,
    "error_subcode": 2300,
    "error_user_title": "Invalid Webhook URL",
    "error_user_msg": "The webhook URL is invalid.",
    "fbtrace_id": "ABC123"
  }
}
```

## Connection Errors

### `Timeout`

```
Error: connect ETIMEDOUT 157.240.22.35:443
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1146:16)
```

### `SSL Error`

```
Error: certificate verify failed
    at TLSSocket.onConnectSecure (_tls_wrap.js:1504:34)
    at TLSSocket.emit (events.js:314:20)
    at TLSSocket._finishInit (_tls_wrap.js:945:8)
    at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:719:12)
```

## Business Account Errors

### `2105`

```
HTTP 403 Forbidden
{
  "error": {
    "message": "This Instagram Business Account is not linked to a Facebook Page",
    "type": "OAuthException",
    "code": 200,
    "error_subcode": 2105,
    "error_user_title": "Business Account Not Linked",
    "error_user_msg": "This Instagram Business Account is not linked to a Facebook Page.",
    "fbtrace_id": "ABC123"
  }
}
```
