Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home/otobustv/test.otobus.tv/api/metro-turizm-debug.php on line 140
Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home/otobustv/test.otobus.tv/api/metro-turizm-debug.php on line 196
Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home/otobustv/test.otobus.tv/api/metro-turizm-debug.php on line 198
Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home/otobustv/test.otobus.tv/api/metro-turizm-debug.php on line 246
Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home/otobustv/test.otobus.tv/api/metro-turizm-debug.php on line 252
Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home/otobustv/test.otobus.tv/api/metro-turizm-debug.php on line 268
Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home/otobustv/test.otobus.tv/api/metro-turizm-debug.php on line 274
Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home/otobustv/test.otobus.tv/api/metro-turizm-debug.php on line 290
Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home/otobustv/test.otobus.tv/api/metro-turizm-debug.php on line 296 Metro Turizm Debug Test
🚌 Metro Turizm Entegrasyon Debug Test
Bu araç Metro Turizm entegrasyonundaki sorunları tespit etmek için kullanılır.
Canlı Takip: https://www.metroturizm.com.tr/canli-takip ❌ Erişim başarısız (HTTP 404)
🔌 API Endpoint Testleri
Sefer Bilgileri: /api/passenger/trip-info ⚠️ Endpoint yanıt verdi (HTTP 302) - 574.46ms Content-Type: text/html; charset=utf-8 ⚠️ JSON olmayan yanıt
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href="/Home/PageNotFound?aspxerrorpath=/api/passenger/trip-info">here</a>.</h2>
</body></html>
Gerçek Zamanlı Veri: /api/realtime/bus-status ⚠️ Endpoint yanıt verdi (HTTP 302) - 620.97ms Content-Type: text/html; charset=utf-8 ⚠️ JSON olmayan yanıt
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href="/Home/PageNotFound?aspxerrorpath=/api/realtime/bus-status">here</a>.</h2>
</body></html>
Otobüs Konumu: /api/tracking/bus-location ⚠️ Endpoint yanıt verdi (HTTP 302) - 178.46ms Content-Type: text/html; charset=utf-8 ⚠️ JSON olmayan yanıt
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href="/Home/PageNotFound?aspxerrorpath=/api/tracking/bus-location">here</a>.</h2>
</body></html>
Aktif Otobüsler: /api/fleet/active-buses ⚠️ Endpoint yanıt verdi (HTTP 302) - 177.27ms Content-Type: text/html; charset=utf-8 ⚠️ JSON olmayan yanıt
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href="/Home/PageNotFound?aspxerrorpath=/api/fleet/active-buses">here</a>.</h2>
</body></html>
Rota Otobüsleri: /api/fleet/route-buses ⚠️ Endpoint yanıt verdi (HTTP 302) - 584.61ms Content-Type: text/html; charset=utf-8 ⚠️ JSON olmayan yanıt
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href="/Home/PageNotFound?aspxerrorpath=/api/fleet/route-buses">here</a>.</h2>
</body></html>
Aktif Rotalar: /api/routes/active ⚠️ Endpoint yanıt verdi (HTTP 302) - 582.36ms Content-Type: text/html; charset=utf-8 ⚠️ JSON olmayan yanıt
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href="/Home/PageNotFound?aspxerrorpath=/api/routes/active">here</a>.</h2>
</body></html>
🧪 Scraper Metodları Test
getActiveBuses() Testi: ⚠️ Veri bulunamadı - 168.76ms
getActiveRoutes() Testi: ⚠️ Veri bulunamadı - 607.65ms
scrapeActiveBuses() Testi: ⚠️ Veri bulunamadı - 519.44ms
💾 Veritabanı Veri Kontrolü
Toplam Kayıt Sayısı: 0
⚠️ Veritabanında henüz veri bulunmuyor
💡 Sorun Giderme Önerileri
Metro Turizm Entegrasyonu İçin Öneriler:
API Endpoint'leri: Metro Turizm'in gerçek API endpoint'leri bu örneklerde tahmin edilmiştir. Gerçek endpoint'ler için Metro Turizm'in resmi dokümantasyonunu kontrol edin.
Rate Limiting: Çok sık istek göndermekten kaçının. İstekler arasında en az 1-2 saniye bekleyin.
User Agent: Gerçek bir tarayıcı User Agent'ı kullanın ve düzenli olarak güncelleyin.
Session Yönetimi: Bazı endpoint'ler oturum gerektiriyor olabilir. Cookie'leri saklayın ve yeniden kullanın.
Fallback Mekanizması: API çalışmadığında sayfa scraping'e geçin.
Hata Yönetimi: Tüm hataları logla ve uygun hata mesajları göster.
Veri Doğrulama: Gelen verileri doğrulayın ve temizleyin.
Yaygın Sorunlar ve Çözümleri:
HTTP 403/404 Hataları: Endpoint URL'lerini kontrol edin, User Agent ekleyin.
Boş Yanıtlar: İstek header'larını kontrol edin, CSRF token gerekebilir.