[wp-trac] [WordPress Trac] #40266: cURL.php process_response() returns no domain name for some Requests_Exception errors

WordPress Trac noreply at wordpress.org
Sun Mar 26 03:13:04 UTC 2017


#40266: cURL.php process_response() returns no domain name for some
Requests_Exception errors
--------------------------+----------------------
 Reporter:  dfavor        |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  HTTP API      |     Version:  4.7.3
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |     Focuses:
--------------------------+----------------------
Changes (by dd32):

 * status:  new => closed
 * resolution:   => invalid
 * component:  General => HTTP API
 * milestone:  Awaiting Review =>


Comment:

 Unfortunately these are the errors which cURL itself is returning, which
 sometimes don't include context of the request.

 If you'd like to submit this upstream to
 [https://github.com/rmccue/Requests Requests] the library we're using for
 HTTP communication, you may be able to get the error messages context
 increased.

 If you're seeing `Requests_Exception` exceptions, that suggests you're
 using the `Requests` functions directly within WordPress - please don't.
 Please use the [https://developer.wordpress.org/plugins/http-api/ HTTP API
 wrapper functions] for it instead, which will allow plugins such as Query
 Monitory (IIRC) or Debug Bar (with HTTP add on) to monitor such requests
 and report/log when they fail (and what URL triggered the failure).

 I'm marking this as invalid for now - as it's an external library, and it
 appears you're not using the WordPress APIs for it.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40266#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list