Async LRO poll timeout (450s) too low for large API imports; abandons still-running operations
@Alexey-Zheltov is already working on this.
Since Sep 4, 2026.
Assessment
This issue has not been assessed yet.
Description
Command that triggered the bug
apiops publish
Expected behavior
For large API specifications, apiops publish should wait long enough for APIM's asynchronous import (LRO) to complete. APIM continues processing the import server-side; the CLI should not give up while the operation is still succeeding.
Actual behavior
The CLI aborts polling after a hardcoded 7.5-minute deadline and reports the API as failed, even though the APIM operation is still running and eventually succeeds:
ERROR NOOP api/: Async operation polling timed out after 450s for apis/
ERROR NOOP api/: Async operation polling timed out after 450s for apis/
This reproduces with large specs (observed with files in the ~340 KB–670 KB / 10k–20k line range), whose import takes more than 7.5 minutes.
apiops CLI version
1.0.0
Environment details
Windows self-hosted agent; Node v24.15.0 / npm 11.12.1; Windows PowerShell 5.1; APIM SKU Developer.
CI/CD environment
Azure DevOps
Is this bug blocking you?
Yes
- Dominant language
- TypeScript
- Stars
- 29
- Forks
- 10
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 23
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Azure/apiops-cli
-
type:question
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Azure/apiops-cli#277 ·
-
type:documentation
Difficulty 1/5 Under an hour Newbie friendliness 94/100
Azure/apiops-cli#250 ·
-
Documentation P2
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Azure/apiops-cli#24 · 1 comment ·
-
type:bug
Difficulty 3/5 1-2 days Newbie friendliness 68/100
Azure/apiops-cli#294 ·
-
type:bug
Difficulty 4/5 3-5 days Newbie friendliness 55/100
Azure/apiops-cli#291 ·
All issues in Azure/apiops-cli
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
safetrustcr/dApp-SafeTrust#426 ·
-
area:workflow bug ready-for-agent
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
fil-donadoni/tolaria#4409 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Fission-AI/OpenSpec#1960 ·
-
Add dependabot Open
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
corsairdev/corsair#1764 ·