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

オープン
#4,433 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
javascript, nodejs

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
Go
スター
85
フォーク
142
平均マージ
1日 7時間
マージ済み PR(30日)
255

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

wso2/api-platform のほかの issue

wso2/api-platform の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。