gray-mueller / gray-mueller/zomato-clone-app-using-react-native

API error message displayed to user during phone number verification

Open
#2,287 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
When entering an OTP for phone number verification from the Profile section, a backend error message is shown to the user:
Unknown argument "otp" on field "Mutation.sendOtpToPhoneNumber".
This indicates that the API request payload does not match the backend schema, and the error is not being handled gracefully.

To Reproduce
Steps to reproduce the behavior:

Go to Profile.
Add a phone number and request OTP verification.
Enter the OTP.
Observe the error message displayed in grey over the OTP input area.
Expected behavior

The API request should accept the correct parameters and successfully verify the OTP.
If an error occurs, display a user-friendly message (e.g., "Invalid OTP, please try again.") instead of backend error text.

Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]
Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]
Additional context
Add any other context about the problem here.

Labels: Enatega Multivendor Customer App, Bug

Contributor guide

Open the contributing guide

Research direction

Start in the Profile phone-number verification flow, focusing on the OTP input and the sendOtpToPhoneNumber mutation named in the report. Inspect the request parameters and the handling of API errors, then reproduce the flow with an OTP. Done means the request matches the backend schema and failures show a user-friendly message instead of the raw API error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react-native
Domain
api, mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.