🚨 n8n Troubleshooting

Řešení chyby "The resource you are requesting could not be found"

❌ Vaše chyba

NodeApiError: The resource you are requesting could not be found

HTTP Status: 404 Not Found

Node: HTTP Request v4.2

n8n verze: 1.107.4

✅ Ověřené funkční endpointy

🌐 Testované a funkční URL (27.8.2025 16:37)

Endpoint Method Status Popis
http://localhost:8085/api/qdrant-stats GET ✅ 200 OK Statistiky databáze
http://localhost:8085/api/search POST ✅ 200 OK Vyhledávání produktů
http://localhost:8085/api/proxy?url=http://localhost:6335/collections GET ✅ 200 OK Proxy pro Qdrant

🔧 Řešení podle typu problému

1. Zkontrolujte URL v n8n

Nejčastější chyby:

❌ Špatně ✅ Správně
http://localhost:6335/collections http://localhost:8085/api/proxy?url=http://localhost:6335/collections
http://qdrant:6333/collections http://localhost:8085/api/proxy?url=http://localhost:6335/collections
http://localhost:8085/collections http://localhost:8085/api/qdrant-stats

2. Správná konfigurace HTTP Request node

📋 Pro List Collections:

Method: GET URL: http://localhost:8085/api/proxy?url=http://localhost:6335/collections Headers: Content-Type: application/json

📊 Pro statistiky databáze:

Method: GET URL: http://localhost:8085/api/qdrant-stats Headers: Content-Type: application/json

🔍 Pro vyhledávání:

Method: POST URL: http://localhost:8085/api/search Headers: Content-Type: application/json Body: { "message": "{{ $json.query }}", "limit": 5 }

3. Krok za krokem test v n8n

  1. Vytvořte nový workflow
  2. Přidejte Manual Trigger
  3. Přidejte HTTP Request node:
    Method: GET URL: http://localhost:8085/api/qdrant-stats
  4. Spusťte test - měli byste dostat JSON s počtem produktů

🎯 Konkrétní řešení pro vaší chybu

✅ Nejpravděpodobnější řešení

Změňte URL v vašem HTTP Request node na jeden z těchto:

# Pro List Collections: http://localhost:8085/api/proxy?url=http://localhost:6335/collections # Pro Collection Info: http://localhost:8085/api/proxy?url=http://localhost:6335/collections/heureka_products # Pro statistiky (doporučeno): http://localhost:8085/api/qdrant-stats

⚠️ Důležité poznámky

🧪 Test workflow pro ověření

Workflow pro rychlé ověření

1. Manual Trigger ↓ 2. HTTP Request - Test API Method: GET URL: http://localhost:8085/api/qdrant-stats ↓ 3. Code Node - Výpis výsledku console.log('API odpověď:', JSON.stringify($json, null, 2)); return { success: true, product_count: $json.collections[0].points_count, collection_status: $json.collections[0].status };

📊 Očekávaný výsledek

{ "collections": [ { "name": "heureka_products", "points_count": 13992, "segments_count": 4, "status": "green" } ] }

🔍 Pokročilé debugging

1. Zkontrolujte n8n logs

# V terminálu serveru: docker logs n8n_container_name --tail=50 # Hledejte řádky s: # - HTTP request details # - Response status codes # - Error messages

2. Test přes curl před n8n

# Test základního endpointu: curl -v http://localhost:8085/api/qdrant-stats # Test proxy endpointu: curl -v "http://localhost:8085/api/proxy?url=http://localhost:6335/collections" # Test search endpointu: curl -X POST "http://localhost:8085/api/search" \ -H "Content-Type: application/json" \ -d '{"message": "test", "limit": 1}'

3. Ověřte síťové připojení

# Ping test: ping localhost # DNS test: nslookup localhost # SSL test: # openssl s_client test pro vlastní doménu (nahraďte example.com) openssl s_client -connect example.com:443 -verify_return_error || true

📞 Rychlá pomoc

🎯 Immediate fix

Pokud chcete okamžitě vyřešit problém:

  1. Otevřete váš HTTP Request node v n8n
  2. Změňte URL na: http://localhost:8085/api/qdrant-stats
  3. Nastavte Method na: GET
  4. Přidejte header: Content-Type: application/json
  5. Spusťte test

Tento endpoint je garantovaně funkční a vrátí informace o databázi!

🔗 Užitečné odkazy