Commit db63b08
committed
fix: propagate FAILED-state errors from inner status-check catch
The inner catch block inside waitForV{1,2}OrganizationReady's status
poll only re-threw errors whose message matched 'appears stuck'. The
explicit FAILED-fast-fail throw ("Organization creation failed with
state FAILED after Xs") and the V2 'creation FAILED' branch were
silently swallowed by the same catch, never reaching the outer org-
list catch that checks for these phrases.
Bug was latent in V1 (creation-status endpoint was already correct)
and activated for V2 by this PR's endpoint switch from /status to
/creation-status. Extend the inner catch to re-throw any terminal
phrase the outer catch would have propagated, so FAILED creation no
longer waits the full 15-min maxWaitTime to surface as a generic
timeout.1 parent 8550c8f commit db63b08
1 file changed
Lines changed: 22 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1307 | 1307 | | |
1308 | 1308 | | |
1309 | 1309 | | |
1310 | | - | |
1311 | | - | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
1312 | 1321 | | |
1313 | 1322 | | |
1314 | 1323 | | |
| |||
1606 | 1615 | | |
1607 | 1616 | | |
1608 | 1617 | | |
1609 | | - | |
1610 | | - | |
| 1618 | + | |
| 1619 | + | |
| 1620 | + | |
| 1621 | + | |
| 1622 | + | |
| 1623 | + | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
| 1627 | + | |
| 1628 | + | |
1611 | 1629 | | |
1612 | 1630 | | |
1613 | 1631 | | |
| |||
0 commit comments