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

Abierto
#4,433 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
javascript, nodejs

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
Go
Estrellas
85
Forks
142
Merge medio
1 d 7 h
PR fusionados (30 d)
255

Preparar el entorno

  • Sin Dockerfile ni archivo de Docker Compose
  • Tiene una plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de wso2/api-platform

Todos los issues de wso2/api-platform

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.