Open Sachinbisht27 opened 1 month ago
Issue Summary
We noticed error logs in the monitoring dashboard indicating that some partner codes are missing from the database. This causes issues when trying to process IVR (Interactive Voice Response) prompts for these partner codes.
What We Found
After checking, we discovered that these specific partner codes were not added to the database, which led to the system being unable to process the IVR prompts correctly.
Error Details
Here’s the error message we received:
/workspace/api/services/prompt_service.py
handle_prompt_response
IVR prompt not found for name 'partner_code' and response 'kanpur_nagar'
This indicates that the partner code "kanpur_nagar" is not available in the database.
What Should Happen
All partner codes must be pre-loaded into the database with the correct names. This ensures that the system can process user responses and keypresses without any errors.
Root Cause
The partner code "kanpur_nagar" was added to RapidPro but wasn’t added to the database table (IVR_prompt
). As a result, when the system compared user responses to the database, it couldn’t find a match.
Impact
However, the fields that should be updated (mapped to their partner codes) are not being updated because the partner code doesn’t exist in the database.
Fixes Implemented
IVR_prompt
table in the database.
Describe the bug We are receiving error logs on the monitoring dashboard for a few partner code names that these partner code names are not added to the database.
Add diagnosis details On Diagnosis, we found that these partner code names are not added to the database.
Error text payload:
Expected behavior
Screenshots
Additional context NA
Root cause
Action items
Criticality Medium
Acceptance Criteria
Documentation Add whatever documentation will be required here.