AOSSIE-Org / AOSSIE-Org/EduAid

[GOOD FIRST ISSUE]: ML Model Endpoints Lack Timeout Protection

オープン
#592 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
good first issue
主要言語
JavaScript
スター
171
フォーク
425
PR マージ指標
30日以内にマージされた PR はありません

説明

### Context

## Description
Fixed a critical issue where ML model endpoints and external API calls could hang indefinitely due to missing timeout handling.

## Problem
- Requests could run forever if models became unresponsive
- Flask worker threads were not released (resource exhaustion)
- Frontend showed infinite loading with no feedback
- One slow request could block the entire system

### What Needs to Be Done

- Added backend timeout wrapper for all ML and external API calls
- Introduced input validation and structured error handling
- Returned proper HTTP `504 Gateway Timeout` for long-running requests
- Implemented frontend request timeout using `AbortController`

### Resources

- [Contribution Guide - Start Here!](https://github.com/AOSSIE-Org/TODO/blob/main/CONTRIBUTING.md)
- [Discord Channel](https://discord.gg/hjUhu33uAn)

### Getting Started

- [x] I have joined the [Discord server](https://discord.gg/hjUhu33uAn) and will post updates there
- [x] I have read the [Contribution Guide](https://github.com/AOSSIE-Org/Template-Repo/blob/main/CONTRIBUTING.md)
- [x] I understand this issue is assigned on a first-come, first-served basis

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。