Skip to content

Conversation

@tomiban
Copy link
Collaborator

@tomiban tomiban commented Nov 16, 2025

…ge server response inconsistencies

📄: Descripción

Proporciona una breve descripción de los cambios realizados en este PR. Explica el problema que resuelve o la funcionalidad que agrega.

  • Cambios realizados:
    • Describe los principales cambios implementados.
    • Incluye detalles técnicos o ejemplos relevantes si es necesario.

📎: Lista de Verificación

Revisa y marca cada ítem para asegurarte de que el PR esté completo.

  • El código sigue los estándares y convenciones establecidos.
  • Se han añadido nuevas pruebas unitarias (si aplica).
  • La documentación relevante ha sido actualizada (README, comentarios en el código, etc.).
  • Se ha realizado pruebas locales para asegurar el correcto funcionamiento.
  • Los cambios no introducen problemas de seguridad ni de rendimiento.

✔️: Cómo Probar Este Cambio

Explica los pasos necesarios para probar este cambio, como comandos a ejecutar, archivos de configuración necesarios, etc.

  1. Paso 1: Configura...
  2. Paso 2: Ejecuta...
  3. Paso 3: Verifica los resultados esperados...

📸: Capturas de Pantalla (Opcional)

Si este PR incluye cambios en la UI o visuales, adjunta capturas de pantalla o GIFs.

🔗: Enlaces Adicionales

Si aplica, agrega enlaces a documentación externa, discusiones relevantes o ejemplos similares.

⏰: Consideraciones Especiales

Menciona cualquier detalle importante a considerar antes de aprobar este PR. Por ejemplo: nuevas dependencias, riesgos potenciales o ajustes necesarios en el futuro.

🟥: Problemas Relacionados

Cierra #123 (reemplaza 123 con el número del problema relacionado).


Note

Make technical career creation robust by treating 201 responses surfaced as errors as successful and returning the created id in both admin and careers services.

  • Services:
    • features/administration/services/technical-career-service.ts
      • Update create to wrap POST in try/catch, treating error.response.status === 201 as success and returning id.
    • features/careers/services/technical-career-service.ts
      • Same create logic to handle 201-as-success and return id.

Written by Cursor Bugbot for commit 6ee7a6c. This will update automatically on new commits. Configure here.

@tomiban tomiban requested a review from tbanchiodev November 16, 2025 23:22
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is being reviewed by Cursor Bugbot

Details

You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

return error.response.data?.id || '';
}
throw error;
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Success Status Blocks Error Handling

The catch block checks for error.response?.status === 201, but HTTP 201 is a success status code in the 2xx range. Axios treats 2xx responses as successful and never throws errors for them, so this condition will never be true. The error handling logic intended to manage server response inconsistencies won't work as expected.

Fix in Cursor Fix in Web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants