Anujcodecraft / Anujcodecraft/notes-online

## ❌ Upvoting PYQ Fails – `branch` field casting error

オープン
#33 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug good first issue NodeJS ReactJs
主要言語
JavaScript
スター
7
フォーク
7
PR マージ指標
30日以内にマージされた PR はありません

説明

### 🐛 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\""
}

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。