IndieCoderMM / IndieCoderMM/tappy-plane

Error when creating game: "You need to provide a valid name for the game"

Open
#2 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
6
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Hi,
I tried to create a new game following the steps in the [Leaderboard Docs](https://microverse.notion.site/Leaderboard-API-service-24c0c3c116974ac49488d4eb0267ade3) - but when I call the API with any value I always get a 400 error:
```js
{
"message": "You need to provide a valid name for the game"
}
```
An example:

Screenshot 2023-12-10 at 21 12 30

What is the accepted format for the name?

Thank you!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the game-creation request using the Leaderboard Docs linked in the issue and compare it with the request sent by the game. Trace the JavaScript/React entry point that creates a game, then verify that a documented valid name is accepted without the 400 error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.