[Improvement] Provide More Meaningful Error Messages for API Deployment Failures in API Portal

Đang mở
#4,433 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript, nodejs
Lĩnh vực
api, developer-experience

Hướng nghiên cứu

The payload names apiPortalRouter.js (around line 152, where API metadata creation starts) and task_queues (around line 262, where the 'Subscription plan not found' error is logged). Start by finding where the task queue error is turned into the generic RESOURCE_NOT_FOUND response returned to the client. Done means a failed publish returns a message that names the missing subscription plan, and the error shape stays consistent.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Aspect/API Type/Improvement
Please select the area the issue is related to

Developer Portal

Please select the aspect the issue is related to

Aspect/API (API backends, definitions, contracts, interfaces, OpenAPI)

Suggested Improvement

When trying to publish an API to the API Portal, the request fails with the following error:

{
"status": "error",
"code": "RESOURCE_NOT_FOUND",
"message": "Resource Not Found",
"errors": []
}
However, when checking the API Portal logs, we can see that the API deployment fails because the configured subscription plans cannot be found:

[2026-11-20 09:42:43][info][apiPortalRouter.js:152] Creating API metadata... {"orgId":"xxxxxxxx"}
[2026-11-20 09:42:43][error][task_queues:262] API metadata creation failed {"error":"Subscription plan not found","orgId":"xxxxxxxx"}
NotFoundError: Subscription plan not found

Please improve the error message to reflect the actual error.

Related Issues

No response

Ngôn ngữ chính
Go
Star
85
Fork
142
Merge trung bình
1 ngày 7 giờ
Pull request đã merge (30 ngày)
255

Chuẩn bị môi trường

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của wso2/api-platform

Tất cả issue của wso2/api-platform

Issue tương tự

Thêm issue về Go

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.