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

Aperta
#4,433 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
javascript, nodejs

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Go
Stelle
85
Fork
142
Merge medio
1g 7h
PR unite (30g)
255

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di wso2/api-platform

Tutte le issue di wso2/api-platform

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.