AOSSIE-Org / AOSSIE-Org/OpenPeerChat-react-native

Bug: Registration Rate Limit (HTTP 429) Displays Generic Error Instead of Clear Feedback

Offen
#7 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
7
Forks
5
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

## 🌟 Feature Description

Improve the onboarding experience by handling HTTP 429 (Too Many Requests) responses explicitly during user registration.

When the backend rate limit is exceeded, the app should display a clear and user-friendly message instead of a generic error.

---

## 🔍 Problem Statement

The backend enforces a registration rate limit (e.g., 3 attempts per hour).

When a user exceeds this limit:

- The server correctly returns **HTTP 429 (Too Many Requests)**.
- The frontend does not explicitly handle this status code.
- A generic message is shown:
> "Registration failed. Please try again."

This creates a confusing user experience because:

- Users are not informed that they have been rate-limited.
- They may repeatedly attempt registration.
- The same generic error continues to appear.
- This can lead to frustration and onboarding drop-off.

Since registration is the first interaction with the application, unclear feedback at this stage negatively impacts user trust and retention.

---

## 🎯 Expected Outcome

When the backend returns HTTP 429:

- The app should explicitly detect the 429 status code.
- A clear message should be shown, such as:

> "Too many registration attempts. Please wait before trying again."

For other error cases:
- Display a generic registration failure message.
- Ensure the app does not crash or freeze.

This will:

- Improve onboarding transparency
- Reduce user frustration
- Enhance real-world usability
- Strengthen trust in the application

---

## 📷 Screenshots and Design Ideas

Suggested frontend handling logic:

```javascript
if (error.response && error.response.status === 429) {
Alert.alert(
"Rate Limit Reached",
"Too many registration attempts. Please wait before trying again."
);
} else {
Alert.alert(
"Error",
"Registration failed. Please try again."
);
}****

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.