Answers.Body: <p>The problem may have had to do with SSL certificates. Callback was using a HTTPS POST callback URL but no SSL certificate was in place. After switching the callback URL to HTTP POST, we are now receiving inbound texts. We are still getting Schema Validation Required responses. Will post again if having an SSL cert makes those go away.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-03-01T03:50:29.253Z
Answers.LastActivityDate: 2021-03-01T03:50:29.253Z
Answers.UserDisplayName: todon2
Body: <p>CiviCRM: WordPress V5.6.2, hosted on CiviHosting</p>
  <p>We can successfully send outbound SMS messages but cannot receive replies back through the webhook in Twilio. We either get HTTP 404 Not Found, 502 Bad Gateway (both encountered on version 5.X), or Schema Validation required responses (encountered on version 4.7).</p>
  <p>Twilio Error example: <a href="https://i.sstatic.net/INWn1.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/INWn1.png" alt="enter image description here" /></a></p>
  <p>We followed the <a href="https://docs.civicrm.org/user/en/latest/sms-text-messaging/set-up/#configuring-a-twilio-sms-gateway" rel="nofollow noreferrer">CiviCRM setup documentation</a> here, including using the example callback URL.</p>
  <p>I have <a href="https://civicrm.stackexchange.com/questions/16746/inbound-sms-from-twilio-not-showing-up-in-civicrm-getting-404-error-on-http-pos">noticed other posts on Stack Exchange</a> highlighting similar issues with different suggestions for callback URLs but all of those different URL configurations have failed, and none of the posts seem to define a clear answer/solution.</p>
  
Tags: <wordpress><sms><civisms><twilio>
Title: Twilio Inbound SMS: 404/502 Responses
ThreadText: # Twilio Inbound SMS: 404/502 Responses
  
  (Asked by: username_0 on 2021-02-28)
  
  CiviCRM: WordPress V5.6.2, hosted on CiviHosting
  
  We can successfully send outbound SMS messages but cannot receive replies back through the webhook in Twilio. We either get HTTP 404 Not Found, 502 Bad Gateway (both encountered on version 5.X), or Schema Validation required responses (encountered on version 4.7).
  
  Twilio Error example: [![enter image description here](https://i.sstatic.net/INWn1.png)](https://i.sstatic.net/INWn1.png)
  
  We followed the [CiviCRM setup documentation](https://docs.civicrm.org/user/en/latest/sms-text-messaging/set-up/#configuring-a-twilio-sms-gateway) here, including using the example callback URL.
  
  I have [noticed other posts on Stack Exchange](https://civicrm.stackexchange.com/questions/16746/inbound-sms-from-twilio-not-showing-up-in-civicrm-getting-404-error-on-http-pos) highlighting similar issues with different suggestions for callback URLs but all of those different URL configurations have failed, and none of the posts seem to define a clear answer/solution.
  
  **Tags:** wordpress, sms, civisms, twilio
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2021-03-01. Score: 1
  
  The problem may have had to do with SSL certificates. Callback was using a HTTPS POST callback URL but no SSL certificate was in place. After switching the callback URL to HTTP POST, we are now receiving inbound texts. We are still getting Schema Validation Required responses. Will post again if having an SSL cert makes those go away.
  
  
  ---
  
  