Anujcodecraft / Anujcodecraft/notes-online
## ❌ Upvoting PYQ Fails – `branch` field casting error
Ouverte
bug
good first issue
NodeJS
ReactJs
- Langage dominant
- JavaScript
- Étoiles
- 7
- Forks
- 7
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
### 🐛 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\""
}
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.