Skip to content

Fix API handling, add env support, and improve future race handling#2

Open
Samarthasbhat wants to merge 1 commit intobordanattila:mainfrom
Samarthasbhat:fix/api-handling-and-env
Open

Fix API handling, add env support, and improve future race handling#2
Samarthasbhat wants to merge 1 commit intobordanattila:mainfrom
Samarthasbhat:fix/api-handling-and-env

Conversation

@Samarthasbhat
Copy link
Copy Markdown

@Samarthasbhat Samarthasbhat commented Mar 25, 2026

Changes Made

  • Fixed missing BASE_API_URL issue by adding .env support
  • Handled 404 errors from OpenF1 API to prevent crashes
  • Added safe handling for empty API responses
  • Improved support for future races (no data scenarios)
  • Added better user feedback messages in UI

Result

  • App no longer crashes on missing data
  • Works for past, current, and future races
  • More stable and user-friendly experience

Notes

  • .env file is required for BASE_API_URL
  • API limitations handled gracefully

For ex:

When we selected future race i.e. Monaco the output will be as shown below.
image

@Samarthasbhat
Copy link
Copy Markdown
Author

Hi, I fixed API handling issues and added support for future race data.
Let me know if any changes are needed. Thanks!

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.

1 participant