[Spacewalk-list] API with Proxy server returns error

Jan Pazdziora jpazdziora at redhat.com
Mon Aug 29 09:52:25 UTC 2011


On Tue, Aug 23, 2011 at 03:58:49PM -0600, Jeremy Davis wrote:
> Hello List,
> 
> I have a working Perl script that when used on the main application server
> of Spacewalk it works fine. When I change the host to a Proxy server it
> gives the following error.
> 
> 500 Bad chunk-size in HTTP response: <?xml version="1.0"
> encoding="UTF-8"?><methodResponse><params><param><value><array><data><value><struct><member><name>id</name><value><i4>1000010545</i4></value></member>
> 
> Any idea as to how I can resolve this issue?
> 
> The calls I am making are as follows:
> 
> Host, username and password is given within the same script. Just removed it
> for security reasons.
> 
> my $client = new Frontier::Client(url => "https://$HOST/rpc/api");
> my $session = $client->call('auth.login',$user, $pass);
> 
> my $allsystems = $client->call('system.listSystems', $session);
>  foreach my $system (@$allsystems) {
>    my $systemname = $system->{'name'};
>    my $systemid = $system->{'id'};
>    print "$systemname and $systemid \n";
>  }

Is this RHEL 6 Spacewalk? Is this Spacewalk nightly?

-- 
Jan Pazdziora
Principal Software Engineer, Satellite Engineering, Red Hat




More information about the Spacewalk-list mailing list