Skip to contentSkip to navigationSkip to topbar
Page toolsOn this page
Looking for more inspiration?Visit the

14201: Enqueue: Invalid method value


ERROR: 14201

error-14201 page anchor
ERROR

This error occurs when Twilio receives an <Enqueue> verb with a method attribute that is not GET or POST. The method attribute controls the HTTP method Twilio uses for the action URL, and POST is the default.

Possible causes

possible-causes page anchor
  • The <Enqueue> verb sets method to a value other than GET or POST.
  • Your application may be generating <Enqueue> TwiML dynamically and inserting an unsupported value into method, because Twilio validates the method attribute against the allowed values GET and POST.
  • You intended to control how Twilio requests the waitUrl, but <Enqueue> uses waitUrlMethod for waitUrl requests and method for the action URL.
  • Set the <Enqueue> method attribute to GET or POST.
  • Remove the method attribute if you do not need to override it. Twilio uses POST by default for the action URL.
  • If you need to control the request method for the hold music or queue instructions endpoint, set waitUrlMethod instead of method.

Additional resources

additional-resources page anchor