Skip to content

🐛 Bug: Handle Quota Usage for APIs #27

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
jaspermayone opened this issue Sep 14, 2024 · 0 comments
Open

🐛 Bug: Handle Quota Usage for APIs #27

jaspermayone opened this issue Sep 14, 2024 · 0 comments
Labels
bug 🛠 goal: fix Focused on fixing bugs or problems good first issue Suitable for newcomers to contribute. issue-board This tag does cool automation things! 🟥 priority: critical With critical priority or severity. 🏁 status: ready for dev Ready for development work.

Comments

@jaspermayone
Copy link
Member

jaspermayone commented Sep 14, 2024

📋 Description

When the application exceeds the quota limit for an external API, it currently crashes. This issue proposes a more graceful handling strategy: ignore the failed request and log a warning, rather than allowing the entire app to crash.


✅ Expected Behavior

  • When an API quota is exceeded:
    • The app should not crash.
    • The failed request should be skipped or deferred.
    • A warning should be logged for observability.

🧪 Steps to Reproduce

  1. Simulate or trigger an API quota limit (e.g., by mocking a 429 response).
  2. Observe that the app crashes instead of handling the error gracefully.

💡 Suggested Fix

  • Wrap API calls in a try/catch or error-handling block.
  • Detect quota-related errors (e.g., HTTP 429 or specific error codes).
  • Log a warning and skip the request.
  • Optionally, implement a backoff or retry mechanism if appropriate.

🛠 Development Notes


📎 Related

@jaspermayone jaspermayone added hacktoberfest Associated with the Hacktoberfest event. 🏁 status: ready for dev Ready for development work. 💻 aspect: code 🛠 goal: fix Focused on fixing bugs or problems 🟥 priority: critical With critical priority or severity. labels Sep 14, 2024
@jaspermayone jaspermayone removed their assignment Sep 14, 2024
@jaspermayone jaspermayone self-assigned this Sep 23, 2024
@jaspermayone jaspermayone pinned this issue Sep 23, 2024
@jaspermayone jaspermayone added bug good first issue Suitable for newcomers to contribute. 🏁 status: ready for dev Ready for development work. 💻 aspect: code 🛠 goal: fix Focused on fixing bugs or problems 🟥 priority: critical With critical priority or severity. and removed hacktoberfest Associated with the Hacktoberfest event. 🏁 status: ready for dev Ready for development work. 💻 aspect: code 🛠 goal: fix Focused on fixing bugs or problems 🟥 priority: critical With critical priority or severity. labels Jan 8, 2025
@jaspermayone jaspermayone removed their assignment Jan 11, 2025
@jaspermayone jaspermayone added 🚦 status: awaiting triage Awaiting initial assessment and assignment. and removed 💻 aspect: code 🚦 status: awaiting triage Awaiting initial assessment and assignment. labels Mar 30, 2025
@jaspermayone jaspermayone changed the title Handle quota usage for apis ### 🐛 Bug: Handle Quota Usage for APIs Apr 4, 2025
@jaspermayone jaspermayone changed the title ### 🐛 Bug: Handle Quota Usage for APIs 🐛 Bug: Handle Quota Usage for APIs Apr 4, 2025
@jaspermayone jaspermayone added the issue-board This tag does cool automation things! label Apr 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🛠 goal: fix Focused on fixing bugs or problems good first issue Suitable for newcomers to contribute. issue-board This tag does cool automation things! 🟥 priority: critical With critical priority or severity. 🏁 status: ready for dev Ready for development work.
Projects
None yet
Development

No branches or pull requests

1 participant