|
2018-04-19
| ||
| 06:57 | • Closed ticket [ff82755e15]: http::geturl socket error reporting lacks stack trac... artifact: 5bd7fa4d0c user: oehhar | |
| 06:55 | • New ticket [ff82755e15]. artifact: 00cb6599f4 user: oehhar | |
|
2018-04-18
| ||
| 11:59 | http::geturl now returns full error stack information if the initial socket command fails Ticket [ff... check-in: a3bf2db1fd user: oehhar tags: core-8-6-branch | |
http::geturl socket error reporting lacks stack trace
Closed / Fixedff82755e15f2e1165cf655c4e7d3f5984927c409Created 9 years agoUpdated 9 years ago
Descriptionwiki2018-04-19 06:55:53
When the socket command within http::geturl raises an error, the stack trace is missing.
% package require http
2.8.12
% package require tls
1.8.0
% http::register https 443 [list ::tls::socket -tls1] ; # parameter missing to -tls1
443 {::tls::tls_socket -tls1}
% http::geturl https://www.hibc.de/
expected boolean value but got "-async"
% set errorInfo
expected boolean value but got "-async"
while executing
"http::geturl https://www.hibc.de/"
The error message was quite surprising to me, as "http::geturl https://www.hibc.de/" has no argument "-async".
After this checkin [a3bf2db1fd], the error reporting was enhanced to contain full stack trace to show the origin of the issue:
% package require http
2.8.13
% package require tls
1.8.0
% http::register https 443 [list ::tls::socket -tls1] ; # parameter missing to -tls1
443 {::tls::socket -tls1}
% http::geturl https://www.hibc.de/
expected boolean value but got "-async"
% set errorInfo
expected boolean value but got "-async"
while executing
"tls::import sock0551AF48 -server 0 -tls1 -async"
("eval" body line 1)
invoked from within
"eval [list tls::import] $chan $iopts"
invoked from within
"::tls::socket -tls1 -async www.hibc.de 443"
("eval" body line 1)
invoked from within
"eval $defcmd $sockopts $targetAddr"
invoked from within
"http::geturl https://www.hibc.de/"
Referenced by1
a3bf2db1fdhttp::geturl now returns full error stack information if the initial socket command fails Ticket [ff82755e15] check-in2018-04-18 11:59:57
oehhar Closed ticket [ff82755e15].
[History diff]2018-04-19 06:57:26
Log in (anonymous is fine) to add a comment.