Skip to content

fix: address issues 7, 9, 11 (API errors, payload limits, leaderboard tests)#2091

Open
sureshchouksey8 wants to merge 2 commits into
xevrion-v2:mainfrom
sureshchouksey8:feature/agent-playground-fixes
Open

fix: address issues 7, 9, 11 (API errors, payload limits, leaderboard tests)#2091
sureshchouksey8 wants to merge 2 commits into
xevrion-v2:mainfrom
sureshchouksey8:feature/agent-playground-fixes

Conversation

@sureshchouksey8

Copy link
Copy Markdown

Fixes #7, Fixes #9, Fixes #11.

This PR includes:

  1. A new sendApiError helper in apps/api/src/utils/error.ts and updates users.ts to use it for missing payloads.
  2. A conservative JSON body size limit (100kb) in the Express app (apps/api/src/index.ts).
  3. Extraction of the leaderboard update logic into scripts/updateLeaderboard.js and comprehensive native Node unit tests in scripts/updateLeaderboard.test.js, updating the auto-process.yml GitHub workflow to use the script instead of inline jq.

Bounty PayPal payout info: https://paypal.me/sureshc26

github-actions Bot added a commit that referenced this pull request Jun 22, 2026
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

Successfully merging this pull request may close these issues.

Write unit tests for leaderboard updates Add request body size limit Add API error handling helper

1 participant