Step 1: Modify the logic function in /api/twilio/webhook/post.ts
Modify the logic function in /api/twilio/webhook/post.ts to catch the NotFoundError and send a text message back to the user with a link to the signup page. You might need to create a new function to send a text message using Twilio. Make sure to handle all possible edge cases, such as what happens if the text message can't be sent for some reason. Also, ensure that the signup link is correct and accessible.
Report:
Step
Result
Details
1
✅
Modify the logic function in /api/twilio/webhook/post.tsModified the logic function in /api/twilio/webhook/post.ts to handle NotFoundError and send a text message back to the user with a link to the signup page. Implemented the sendMessage function and replaced the placeholder signup link with the actual signup link.
Something look wrong?: If this Pull Request doesn't contain the expected changes, add more information to #134. Then, add the ellipsis:create label to try again. For more information, check the documentation.
Summary:
Issue: resolves https://github.com/samepage-network/samepage.network/issues/134
Implementation:
Step 1: Modify the
logic
function in/api/twilio/webhook/post.ts
Modify the
logic
function in/api/twilio/webhook/post.ts
to catch theNotFoundError
and send a text message back to the user with a link to the signup page. You might need to create a new function to send a text message using Twilio. Make sure to handle all possible edge cases, such as what happens if the text message can't be sent for some reason. Also, ensure that the signup link is correct and accessible.Modify the
Modified thelogic
function in/api/twilio/webhook/post.ts
logic
function in/api/twilio/webhook/post.ts
to handleNotFoundError
and send a text message back to the user with a link to the signup page. Implemented thesendMessage
function and replaced the placeholder signup link with the actual signup link.Something look wrong?: If this Pull Request doesn't contain the expected changes, add more information to #134. Then, add the
ellipsis:create
label to try again. For more information, check the documentation.