# Troubleshooting

#### "Invalid or expired access token"

**Cause:** Your access token has expired or is incorrect

**Solution:**

1. Generate a new token at [Twitch Token Generator](https://twitchtokengenerator.com/quick/HvO1CktuVV)
2. Update credentials:

```
/sl twitch setup <client_id> <new_access_token>
/sl twitch connect
```

#### "Failed to get user info"

**Cause:** Client ID or channel name is incorrect

**Solution:**

1. Verify your channel name is spelled correctly (lowercase)
2. Double-check your Client ID from the Token Generator
3. Re-run setup with correct values

#### Events Not Working

**Cause:** Missing OAuth scopes or EventSub connection failed

**Solution:**

1. Regenerate token with all required scopes
2. Check console for `[EventSub]` error messages
3. Ensure you're using the provided token generator link

#### Chat Not Displaying

**Cause:** IRC connection issues or channel name mismatch

**Solution:**

1. Verify channel name matches your Twitch username exactly
2. Check firewall isn't blocking IRC port 6667
3. Try disconnecting and reconnecting:

```
/sl twitch disconnect
/sl twitch connect
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kentatetsu.gitbook.io/streamlink/guides/twitch-setup-guide/troubleshooting.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
