FIRST-Tech-Challenge / FIRST-Tech-Challenge/scorekeeper

FTC API Not Returning RCMP Divisions

Open
#921 3 comments 0 reactions 0 assignees View on GitHub
ftc-events
Dominant language
No language data
Stars
110
Forks
26
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
When GETing `https://ftc-api.firstinspires.org/v2.0/2025/events?eventCode=USMICMP2WF`, a 200 response is returned as `{"events":[],"eventCount":0}`, despite the event existing on the ftc.events site. This is inconsistent with a nonexistent event code, which returns a 404; and with divisions for last year, which return the data as expected.

**To Reproduce**
Steps to reproduce the behavior:
1. Call the events endpoint with the USMICMP2WF event code
2. Observe empty array returned

**Expected behavior**
Data for the divisions is returned, including the divisionCode pointing to the parent event.

**Screenshots**
N/A. See URL and response above

**Device (please complete the following information):**
- `curl` using a valid API key that successfully fetches information about other events

**Additional context**
These divisions were created several days ago by the lead FTA, so I wouldn't expect caching to be a factor after this much time has passed. Same behavior occurs for divisions under both of the FiM CMPs

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the GET request to the FTC API events endpoint for eventCode USMICMP2WF with curl, then trace the scorekeeper entry point that fetches event divisions. Compare the empty response with a nonexistent event code and last year's division responses; done means the affected divisions are returned with their parent event's divisionCode.

Written by the indexing model from the issue text.

Assessment

Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.