Skip to content
Back to skills

2036 Errors Cc65ce7f

ASecurity

``` Error: Request timeout ``` **Cause:** DeFiLlama API slow or unreachable **Solution:** 1. Wait and retry (service usually recovers quickly) 2. Check https://status.llama.fi/ for outages 3. Use cached data if available

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
developmentpythongobashdebuggingapidatabase

Works with

  • api

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 2036-errors_cc65ce7f --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 2036 Errors Cc65ce7f?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 2036 Errors Cc65ce7f
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-2036-errors-cc65ce7f/badge)](https://www.skillsdirectory.com/skills/tools-only-2036-errors-cc65ce7f)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
# Error Handling Reference

## API Errors

### DeFiLlama API Timeout
```
Error: Request timeout
```
**Cause:** DeFiLlama API slow or unreachable
**Solution:**
1. Wait and retry (service usually recovers quickly)
2. Check https://status.llama.fi/ for outages
3. Use cached data if available

### Invalid Protocol Name
```
Error: Protocol not found: invalid-name
```
**Cause:** Protocol slug doesn't match DeFiLlama database
**Solution:**
1. Check protocol list: `python onchain_analytics.py protocols`
2. Use exact slug from DeFiLlama (case-sensitive)
3. Search by partial name in protocol list

### Empty Response
```
Error: No data returned for query
```
**Cause:** Filter too restrictive or data unavailable
**Solution:**
1. Remove filters and retry
2. Check if category/chain exists
3. Try broader time range

## Data Quality Issues

### Missing TVL Data
```
Warning: TVL data unavailable for some protocols
```
**Cause:** New protocols or data collection gaps
**Solution:**
1. Check DeFiLlama directly for protocol
2. Data usually available within 24h of listing

### Stale Data
```
Warning: Data may be stale (last updated: X hours ago)
```
**Cause:** Cache not refreshed
**Solution:**
1. Clear cache: `rm ~/.onchain_analytics_cache.json`
2. Use `--verbose` to see cache status

## Output Issues

### Large Output Truncated
```
[Showing top 50 of 1000+ protocols]
```
**Solution:** Use `--limit` flag or `--format json` for full data

### Encoding Errors
```
UnicodeEncodeError: ...
```
**Solution:**
1. Use `--format json`
2. Set `LANG=en_US.UTF-8`

## Recovery Strategies

### Clear Cache
```bash
rm ~/.onchain_analytics_cache.json
```

### Verbose Mode for Debugging
```bash
python onchain_analytics.py protocols --verbose
```

### Fallback to JSON
If table output fails:
```bash
python onchain_analytics.py protocols --format json > output.json
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.