Commit a08b451
committed
fix(dashboard-api): handle transaction buffering timeouts
- Relaxed the isTransactionError strict check to also catch 'buffering timed out' and generic 'Session' or 'sessions are not supported' errors.
- This ensures that when MongoDB instances (e.g., standalone setups) fail to start a session due to missing replica set configuration, the transaction gracefully falls back to the non-transactional operation instead of crashing with a 500.1 parent 95e72c1 commit a08b451
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
389 | 389 | | |
390 | 390 | | |
391 | 391 | | |
392 | | - | |
393 | | - | |
394 | | - | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
395 | 398 | | |
396 | 399 | | |
397 | 400 | | |
| |||
0 commit comments