Requests icon indicating copy to clipboard operation
Requests copied to clipboard

Include request data in exceptions

Open davidfavor opened this issue 8 years ago • 6 comments

https://core.trac.wordpress.org/ticket/40266 documents what seems a bug.

In some cases, hostnames are included in errors + sometimes they're missing.

Trying to debug problems with missing hostnames requires, hacking up code, injecting manual debug logic in various places.

An ugly solution.

Request that all errors returned by the Requests library always include a hostname for the related error.

davidfavor avatar Mar 26 '17 14:03 davidfavor

This issue still requires resolution.

As it stands, some errors contain no URL which makes debugging complex.

davidfavor avatar Apr 29 '17 15:04 davidfavor

This issue still requires resolution.

As it stands, some errors contain no URL which makes debugging complex.

davidfavor avatar May 08 '17 13:05 davidfavor

This issue still requires resolution.

As it stands, some errors contain no URL which makes debugging complex.

davidfavor avatar Jun 01 '17 23:06 davidfavor

@davidfavor Please don't continually comment on this issue. You're welcome to submit a pull request to fix this.

rmccue avatar Jun 09 '17 05:06 rmccue

Be far better if the developers provided a fix.

This problem effects every WordPress site.

davidfavor avatar Jun 09 '17 12:06 davidfavor

Finally tracked down bug.

Problem relates to new systemd-resolved code used now on Distros making use of the horribly broken systemd subsystem (my opinion).

The systemd-resolved subsystem is incredibly slow.

Moving full explanation to new WordPress ticket.

davidfavor avatar Sep 19 '17 12:09 davidfavor