Anujcodecraft / Anujcodecraft/notes-online
## ❌ Upvoting PYQ Fails – `branch` field casting error
Abierto
bug
good first issue
NodeJS
ReactJs
- Lenguaje dominante
- JavaScript
- Estrellas
- 7
- Forks
- 7
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
### 🐛 Description:
When trying to upvote a PYQ, a `400 Bad Request` error is returned from the backend. The response suggests a validation failure related to the `branch` field.
---
### 💥 Error (from network tab):
```json
{
"error": "Failed to upvote PYQ",
"details": "pyqs validation failed: branch: Cast to ObjectId failed for value \"CSE\" (type string) at path \"branch\" because of \"BSONError\""
}
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.