Azure / Azure/apiops-cli

Async LRO poll timeout (450s) too low for large API imports; abandons still-running operations

Đã đóng
#251 1 bình luận 0 reaction 1 người được giao Được @Alexey-Zheltov nhận Xem trên GitHub
effort:S type:bug
Ngôn ngữ chính
TypeScript
Star
26
Fork
9
Merge trung bình
1 ngày 3 giờ
Pull request đã merge (30 ngày)
20

Mô tả

### 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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.