Project

General

Profile

Actions

action #18494

closed

Move verbose error message for client when perl-IO-Socket-SSL package missing

Added by cbruckmayer about 7 years ago. Updated almost 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
2017-04-11
Due date:
% Done:

100%

Estimated time:

Description

After only installing openQA-client on a SLES12 SP2 minimal installation I tried to trigger a job via

/usr/share/openqa/script/client isos post --host https://openqa.opensuse.org

which resulted with a not very verbose error message

ERROR: -

After adding some debug code to

https://github.com/os-autoinst/openQA/blob/7556dd849ae520997f37058d5df34b24040cccc2/script/client#L220

I get the following output:

$VAR1 = bless( {
'finished' => 2,
'content' => bless( {
'headers' => bless( {
'headers' => {}
}, 'Mojo::Headers' ),
'read' => sub { "DUMMY" },
'events' => {
'read' => [
$VAR1->{'content'}{'read'}
]
}
}, 'Mojo::Content::Single' ),
'events' => {},
'state' => 'finished',
'error' => {
'message' => 'IO::Socket::SSL 1.94+ required for TLS support'
}
}, 'Mojo::Message::Response' );

Installing perl-IO-Socket-SSL fixed the issue.
Maybe the error message could be more verbose? Or maybe it makes even sense to require perl-IO-Socket-SSL ?

Actions #1

Updated by dheidler about 7 years ago

  • Status changed from New to In Progress
  • Assignee set to dheidler
Actions #2

Updated by dheidler about 7 years ago

  • % Done changed from 0 to 100

PR: https://github.com/os-autoinst/openQA/pull/1303

Error for missing module:

ERROR:  - IO::Socket::SSL 1.94+ required for TLS support

Server error:

ERROR: 403 - Forbidden
{ error => "no api key", error_status => 403 }
Actions #3

Updated by dheidler almost 7 years ago

  • Status changed from In Progress to Resolved

Merged.

Actions

Also available in: Atom PDF