samepage-network / samepage.network

samepage.network
MIT License
10 stars 2 forks source link

[Ellipsis] Forward "User not found for phone number" error to user #135

Closed ellipsis-dev[bot] closed 6 months ago

ellipsis-dev[bot] commented 6 months ago

Summary:

:warning: We couldn't build/test your project to verify our changes. Add a Dockerfile to significantly improve code quality.

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 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.