Project

General

Profile

Feature #92231

Updated by Sybille Peters over 3 years ago

For some error types, the error messages are too long, verbose and not suited for non technical audience. 

 The reason is, that not all error types have language strings and in some cases a generic error message and the exception (from Guzzle) is used. 

 I would propose to add some more error messages. 

 Also, the "Network error / invalid domain" error message is misleading, because all error reasons listed in https://curl.haxx.se/libcurl/c/libcurl-errors.html return that. In fact, the error code is also returned which could be used to give a more specific error message. 

 h2. Examples that already have short custom error messages: 

 404: 

 <pre><code class="text"> 
 The requested url was not found (404). 
 </code></pre> 


 403: 

 <pre><code class="php"> 
 Accessing this address is not allowed (403). 
 </code></pre> 


 h2. Examples for errors with long and cluttered error message 

 401: 


 <pre><code class="text"> 
 An error occurred (401): "Client error: `GET https://url-which-requires-login/login` resulted in a `401 Unauthorized` response: 




 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xh (truncated...) 
 ". 
 </code></pre> 

 wrong domain: 

 <pre><code class="text"> 
 Network error / invalid domain:cURL error 6: Could not resolve host: invalid-domain.de; Unknown error (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) 
 </code></pre> 

 ssl problem: 

 <pre><code class="text"> 
 Network error / invalid domain:cURL error 51: Unable to communicate securely with peer: requested domain name does not match the server's certificate. (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) 
 </code></pre> 

 timeout: 

 <pre><code class="text"> 
 Network error / invalid domain:cURL error 28: Connection timed out after 10001 milliseconds (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) 
 </code></pre> 

 HTTP Status code 500: 

 <pre><code class="text"> 
 Network error / invalid domain:Server error: `GET http://some-domain/` resulted in a `500 Internal Server Error` response: 
 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> 
 <html><head> 
 <title>500 Internal Server Error</title> 
 </head><body> 
 < (truncated...) 
 </code></pre> 

 wrong protocol: 

 <pre><code class="text"> 
 Network error / invalid domain:cURL error 1: Protocol hhttps not supported or disabled in libcurl (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) 
 </code></pre> 

 502: 

 <pre><code class="text"> 
 Network error / invalid domain:Server error: `GET http://hochschule-ohne-grenzen.org/` resulted in a `502 Proxy Error` response: 
 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> 
 <html><head> 
 <title>502 Proxy Error</title> 
 </head><body> 
 <h1>Proxy E (truncated...) 
 07.09.20 16:15 
 </code></pre> 

Back