> For the complete documentation index, see [llms.txt](https://docs.tensorx.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tensorx.ai/documentation/troubleshooting.md).

# Troubleshooting

Common issues and solutions when using Tensorix with AI coding tools.

## API Error: Cannot read properties of undefined

### Cause

Usually happens when environment variables are conflicting or the base URL is incorrect.

### Solution

1. **Verify your API base URL**:
   * For Claude Code: `https://api.tensorix.ai/anthropic`
   * For Cursor/Cline: `https://api.tensorix.ai/v1`
2. **Replace the placeholder** `<YOUR_TENSORIX_API_KEY>` with your actual API key
3. **Clear conflicting environment variables**:

```bash
# For Claude Code
unset ANTHROPIC_AUTH_TOKEN ANTHROPIC_BASE_URL

# For Cursor/Cline
unset OPENAI_API_KEY OPENAI_BASE_URL
```

4. **Check your API credits** at [tensorix.ai](https://tensorix.ai)

## Connection Timeout

### Cause

The default timeout may be too short for complex operations.

### Solution

Increase the timeout value in your configuration:

```json
"API_TIMEOUT_MS": "3000000"
```

## Model Not Found

### Cause

Using incorrect model ID format.

### Solution

Always use the full model ID with provider prefix:

| ✅ Correct              | ❌ Incorrect  |
| ---------------------- | ------------ |
| `z-ai/glm-4.7`         | `glm-4.7`    |
| `minimax/minimax-m2`   | `minimax-m2` |
| `minimax/minimax-m2.1` | `m2.1`       |

## Authentication Failed

### Cause

Invalid or expired API key.

### Solution

1. Log in to [tensorix.ai](https://tensorix.ai)
2. Navigate to your dashboard
3. Generate a new API key
4. Update your configuration with the new key

## Rate Limiting

### Cause

Too many requests in a short period.

### Solution

* Wait a few seconds between requests
* Consider upgrading your plan for higher rate limits
* Use batch operations when possible

## Need More Help?

* **Email**: <support@tensorix.ai>
* **Documentation**: [docs.tensorix.ai](https://docs.tensorix.ai)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://docs.tensorx.ai/documentation/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.
