Anujcodecraft/notes-online
## ❌ Upvoting PYQ Fails – `branch` field casting error
オープン
#33 opened on 2025/07/05
NodeJSReactJsbuggood first issue
Repository metrics
- Stars
- (7 個のスター)
- PR merge metrics
- (PR metrics pending)
説明
🐛 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):
{
"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\""
}