-
-
Notifications
You must be signed in to change notification settings - Fork 45
More API error messages #3180
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
More API error messages #3180
Conversation
Changed message for parsing errors in failure code to UNKNOWN_ERROR.
📝 WalkthroughWalkthroughThe changes introduce enhanced error handling for recovery network operations. Four new string resources were added to provide specific user-facing messages for unauthorized requests, server errors, request cooldowns, and unknown errors. The Sequence Diagram(s)sequenceDiagram
participant User
participant Activity
participant PersonalIdApiHandler
participant PersonalIdApiErrorHandler
User->>Activity: Initiates recovery network request
Activity->>PersonalIdApiHandler: Sends request
PersonalIdApiHandler-->>Activity: Handles response
alt Error occurs
PersonalIdApiHandler->>PersonalIdApiErrorHandler: Pass error code (e.g., UNAUTHORIZED, SERVER_ERROR, COOLDOWN, UNKNOWN_ERROR)
PersonalIdApiErrorHandler-->>Activity: Returns specific error string resource
Activity-->>User: Displays error message
else Success
Activity-->>User: Displays success
end
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
🧰 Additional context used🧬 Code Graph Analysis (1)app/src/org/commcare/connect/network/PersonalIdApiErrorHandler.java (1)
🔇 Additional comments (6)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Product Description
Improved user messaging for several HTTP error codes.
Technical Summary
Added messages for unauthorized, server error, cooldown, and unknown.
Parsing errors (JSONException, IOException) during failure scenario handling now treated as unknown errors
Feature Flag
PersonalID
Safety Assurance
Safety story
No special testing, these are just different strings to show