WIP: at-return-output #63

Draft
Alfred-mk wants to merge 3 commits from at-return-output into master
Member

Updated the code to only show output if the http response code is 200

From the AT documentation:

If we get a HTTP error response (Code 40X) from your script, or a malformed response (does not begin with CON or END), we will terminate the USSD session gracefully.

Based on this, I see it best to return an error response instead of having a success response of 200, leading to an empty result if the menu encountered any errors

Updated the code to only show output if the http response code is 200 From the AT documentation: > If we get a HTTP error response (Code 40X) from your script, or a malformed response (does not begin with CON or END), we will terminate the USSD session gracefully. Based on this, I see it best to return an error response instead of having a success response of 200, leading to an empty result if the menu encountered any errors
Alfred-mk added 2 commits 2024-09-18 14:32:58 +02:00
Alfred-mk requested review from lash 2024-09-18 14:34:32 +02:00
lash requested changes 2024-09-18 14:41:03 +02:00
lash left a comment
Owner

Add a test please?

Add a test please?
Alfred-mk changed title from at-return-output to WIP: at-return-output 2024-09-18 14:43:33 +02:00
Alfred-mk added 1 commit 2024-09-18 14:43:54 +02:00
This pull request is marked as a work in progress.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin at-return-output:at-return-output
git checkout at-return-output
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: urdt/ussd#63
No description provided.