Log Ngoding

Catatan coding harian, dari debugging sampai deploy

Codelifelog Lahir — Interview & Transformasi Progress Daily ke Format Codelog

30 Jun 2026

errors YAML frontmatter error: tags dengan koma menyebabkan YAML parse error. Contoh: tags: ["coding, life"] → dianggap 1 tag "coding, life" bukan 2 tag Batch transform 15 file manual: rawan ketidakseragaman format antar file Tidak ada error sistem — ini …

Major Pipeline Overhaul — Priority Analysis, TP Tracking & Dead Code Cleanup

28 Jun 2026

errors accum_validity threshold impossible: kondisi total_score > 7 digunakan untuk validasi akumulasi, padahal score maksimum yang mungkin dari sistem scoring adalah 5.92. Akibatnya: 0 stocks pernah lolos validasi akumulasi — fitur ini mati total tanpa ada yang sadar. python # …

Final Optimizations — Market Hours, Database Cleanup & PM2 Finalisasi

25 Jun 2026

errors Real log dari data health monitor: 2026-06-24 00:00:01 - data_health_monitor - WARNING - Still stale after fix: 1d, 1h ❌ 2026-06-24 00:00:01 - data_health_monitor - WARNING - 1d: Fetcher failed ❌ 2026-06-24 00:00:01 - data_health_monitor - WARNING - 1h: …

Tier Implementation — Classifier & Tiered Fetcher

24 Jun 2026

errors tier_classifier.py error jika avg_turnover_20d NULL: TypeError: '>=' not supported between instances of 'NoneType' and 'int' tiered_fetcher.py fetch di luar jam market: banyak "No data — skip" log padahal API call sudah terlanjur dilakukan Tidak ada error runtime — proyek …

Tier System Design — Analisis Turnover & Threshold

23 Jun 2026

errors Pemborosan API quota masif — 956 stocks di-fetch tiap 5 menit tanpa terkecuali. Total: ~11.472 API calls per jam, ~275.328 per hari. Sebagian besar untuk saham tidur yang volume tradingnya cuma 100 lembar/hari. Log fetcher menunjukkan: 2026-07-30 19:17:32 - …

Retry Logic Strengthening — ALL Exceptions & Health Monitor 5 Fixes

21 Jun 2026

errors Fetcher gagal di network errors — fetch_single_ticker() hanya retry untuk rate limit errors (HTTP 429). Network timeout, connection refused, DNS resolution failure, SSL handshake error tidak di-handle. Akibatnya: saham-saham tertentu sering ke-skip tanpa sempat di-retry. Actual log lines: 2026-06-25 …

The NaN Crisis — Yuk, kita upgrade yfinance

19 Jun 2026

errors Data OHLC penuh NaN — 725 dari 956 saham terdeteksi punya nilai NaN (Not a Number) di kolom open, high, low, close, volume untuk tanggal 19 Juni 2026. Data terlihat ada (row count normal) tapi isinya nggak berguna. Radar …

Infrastructure Fixes — ALLOWED_HOSTS, PM2 & Data Health Monitor

17 Jun 2026

errors ALLOWED_HOSTS invalid — Django reject semua request HTTP karena ada https:// prefix di mrcuan.codenest.id. Browser dapat 400 Bad Request, seluruh web app tidak bisa diakses. Actual error from Django log: [2026-06-22 00:29:14,160] ERROR django.security.DisallowedHost Invalid HTTP_HOST header: 'mrcuan.codenest.id'. You …

Entry Analysis Overhaul — API Integration & 3 Section Baru

15 Jun 2026

errors API response structure mismatch (critical): View entry analysis mengakses key dictionary response API dengan case dan path yang salah. Response API FastAPI actual structure: python { "heikin_ashi": {...}, # lowercase "supertrend": {...}, # lowercase "rsi": 45.2, # bukan RSI_14 …

Watchlist Enhancements — IHSG, Top Picks & Auto-Refresh

13 Jun 2026

errors Cron timezone mismatch (critical): Semua cron job di PM2 berjalan pada waktu yang salah. radar-analysis di-set 0 4 * * * (asumsi 04:00 WIB), tapi server menggunakan UTC. Akibatnya analysis berjalan jam 04:00 UTC = 11:00 WIB (pagi, pas …

Tutorial, Disclaimer & Radar Reorganisasi

11 Jun 2026

errors Session mismatch: Halaman tutorial dan disclaimer tidak menampilkan topbar dan nav untuk user yang sudah login. Error di log: [ERROR] django.request Internal Server Error: / Traceback: ... File "views.py", line XX, in tutorial user_id = request.user.id AttributeError: 'User' object …

Sector Data, Signal State Machine & OHLC 5m Table

09 Jun 2026

errors SQL error saat insert sector ke tabel stocks tanpa column sector: column "sector" of relation "stocks" does not exist Signal state update error di log: [ERROR] Signal state update failed: 'smart_signal_states' column does not exist Selain error SQL, secara …