---
"@context": https://schema.org
"@type": TechArticle
"@id": https://www.twilio.com/docs/api/errors/51107#article
headline: "51107: Twilsock: Service can't be used"
url: https://www.twilio.com/docs/api/errors/51107
inLanguage: en
dateModified: 2026-06-09T11:00:42.000Z
author:
  "@type": Organization
  name: Twilio Developer Education Team
publisher:
  "@type": Organization
  name: Twilio
---

# 51107: Twilsock: Service can't be used

Log Level: ERROR

## Description

This error occurs when a client SDK tries to connect with an Access Token that points to a Twilsock-backed service instance that is not usable for that connection. Conversations and Sync tokens must include the correct service-specific grant and the correct service SID for the account that owns the service.

### Possible causes

* The Access Token references the wrong service instance.
* The service instance exists but is not available for use.
* The token was signed with credentials from a different account or subaccount than the one that owns the service instance.
* For Conversations, the token does not include a `ChatGrant` with the correct Conversation Service SID.
* For Sync, the token does not include a `SyncGrant` with the correct Sync Service SID.

### Possible solutions

* Decode the Access Token and verify the `grants` section includes the correct service-specific grant for your SDK.
* For Conversations, generate the token with a `ChatGrant` that uses the correct Conversation Service SID.
* For Sync, generate the token with a `SyncGrant` that uses the correct Sync Service SID.
* Regenerate the token with the correct Account SID, API Key SID, API Secret, and `identity`.
* Make sure the service instance belongs to the same Twilio account as the credentials used to create the token.
* If the service instance is disabled or otherwise unavailable, switch to a valid active service instance.

#### Additional resources

* [Access Tokens](/docs/iam/access-tokens)
* [Create Access Tokens for Conversations](/docs/conversations/create-tokens)
* [Issuing Sync Tokens](/docs/sync/identity-and-access-tokens)
