top-gg / issues

Report bugs related to Top.gg. For feature requests: https://feedback.top.gg
35 stars 13 forks source link

[BUG] Unexpected Execution Error while posting review #856

Open nimishjn opened 2 years ago

nimishjn commented 2 years ago

Expected Behavior

Add the review for Design & Code

Observed Behavior

It is loading, but not adding a review. The reviews are getting posted for other servers, except Design and Code.

Applicable Links or Attachments

Link to Server

image

Request Payload:

{
  "query": "\n    mutation CreateReview($body: AddReviewInput) {\n  addReview(body: $body) {\n    ...ReviewFragment\n  }\n}\n    \n    fragment ReviewFragment on Review {\n  id\n  score\n  content\n  hasVoted\n  entityId\n  isFlagged\n  flaggedAt\n  editedAt\n  timestamp\n  voteCount\n  reply {\n    id\n    content\n    posterId\n  }\n  poster {\n    ... on User {\n      id\n      username\n      avatarUrl\n    }\n  }\n}\n    ",
  "variables": {
    "body": {
      "entityId": "",
      "score": 100,
      "content": "I really like how the dev-help channel always has 50+ pending messages and designers are constantly sharing their designs in the design showcase channel."
    }
  }
}

Response:

{
    "errors": [
        {
            "message": "Unexpected Execution Error",
            "locations": [
                {
                    "line": 3,
                    "column": 3
                }
            ],
            "path": [
                "addReview"
            ]
        }
    ],
    "data": {
        "addReview": null
    }
}

Steps to Reproduce

  1. Go to --> Link
  2. Scroll to review section
  3. Write some text and give stars
  4. Click Post Review

System details

https://www.whatsmybrowser.org/b/V36GD