Skip to content

Challenge creation fails with a 500 error #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jmgasper opened this issue Jun 10, 2025 · 1 comment
Open

Challenge creation fails with a 500 error #5

jmgasper opened this issue Jun 10, 2025 · 1 comment

Comments

@jmgasper
Copy link
Contributor

Sample request:

POST https://api.topcoder-dev.com/v6/challenges

Details:

{
    "status": "New",
    "projectId": "100337",
    "name": "Justin V6 Test 1",
    "typeId": "927abff4-7af9-4145-8ba1-577c16e64e2e",
    "trackId": "9b6fc876-f4d9-4ccb-9dfd-419247628825",
    "startDate": "2025-06-11T16:28:51+10:00",
    "legacy": {
        "reviewType": "COMMUNITY"
    },
    "descriptionFormat": "markdown",
    "timelineTemplateId": "7ebf1c69-f62f-4d3a-bdfb-fe9ddb56861c",
    "terms": [
        {
            "id": "317cd8f9-d66c-4f2a-8774-63c612d99cd4",
            "roleId": "732339e7-8e30-49d7-9198-cccf9451e221"
        }
    ],
    "groups": [],
    "tags": [],
    "discussions": [
        {
            "name": "Justin V6 Test 1 Discussion",
            "type": "challenge",
            "provider": "vanilla"
        }
    ],
    "metadata": [
        {
            "name": "show_data_dashboard",
            "value": "false"
        }
    ]
}
@jmgasper
Copy link
Contributor Author

From the logs:

2025-06-10T06:28:52.844Z
	
Argument `billingAccountId`: Invalid value provided. Expected String or Null, provided Int.
2025-06-10T06:28:52.844Z
	
at Pn (/challenge-api/node_modules/@prisma/client/runtime/library.js:29:1363)
2025-06-10T06:28:52.844Z
	
at Un.handleRequestError (/challenge-api/node_modules/@prisma/client/runtime/library.js:121:7090)
2025-06-10T06:28:52.844Z
	
at Un.handleAndLogRequestError (/challenge-api/node_modules/@prisma/client/runtime/library.js:121:6771)
2025-06-10T06:28:52.844Z
	
at Un.request (/challenge-api/node_modules/@prisma/client/runtime/library.js:121:6478)
2025-06-10T06:28:52.844Z
	
at async l (/challenge-api/node_modules/@prisma/client/runtime/library.js:130:9644)
2025-06-10T06:28:52.844Z
	
at async Object.createChallenge (/challenge-api/src/services/ChallengeService.js:879:15)
2025-06-10T06:28:52.844Z
	
at async createChallenge (/challenge-api/src/controllers/ChallengeController.js:53:18) {
2025-06-10T06:28:52.844Z
	
clientVersion: '6.4.1'
2025-06-10T06:28:52.844Z
	
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant