## Problem Sentry: [PHP-LARAVEL-1X](https://whisper-money.sentry.io/issues/PHP-LARAVEL-1X) — 6 events, 2 users. `IndexaCapitalClient::getPerformance()` throws `RequestException` when Indexa Capital returns 404 (HTML page) for an account without performance data — e.g. brand-new or inactive accounts. This aborts `SyncBankingConnectionJob::syncIndexaCapital` and pages us via Sentry. ## Fix Catch the 404 inside the client, log at info level, and return an empty array. The downstream `IndexaCapitalBalanceSyncService` already short-circuits when `portfolios` is empty, so the sync no-ops cleanly. Other HTTP errors (auth, 5xx) keep throwing. ## Test Added `returns empty performance when indexa capital responds 404` in `IndexaCapitalBalanceSyncTest`. ``` php artisan test --filter=IndexaCapitalBalanceSyncTest Tests: 12 passed ``` Fixes PHP-LARAVEL-1X |
||
|---|---|---|
| .. | ||
| .pest | ||
| Browser | ||
| Feature | ||
| Performance | ||
| Unit | ||
| Pest.php | ||
| TestCase.php | ||
| bootstrap.php | ||