[#4731] - Unexpected HTTP code returned 0

Category:
Bug report
Priority:
High
Status:
New
Project: Severity:
Major
Resolution:
Open
Component: Reproducibility:
Sometimes
Assigned to:

Hi,

I hope this email finds you well, I am using Jasper server in order to generate PDF files,
The trigger is based on Jasper PHP client.

During development phase I have encounter a strange behavior when I try to generate PDF file, sometimes I am getting 'Unexpected HTTP code returned 0' exception when I ran the following command:
"$report = $client1->runReport('/Reports/Merchant_Statement/Merchant_Statement_Way4', 'pdf', null, $controls);"

It is very difficult to reproduce this as it sometimes happens and sometimes not..
It looks like it generated from JasperClient.php file on row 135, when the status code returned is 0 and not 200.

Please find below the exeption:

/home/bint/scheduled_scripts/transformer/protected/extensions/JasperReports_REST/client/JasperClient.php:135
Stack trace:
#0 /home/bint/scheduled_scripts/transformer/protected/extensions/JasperReports_REST/client/JasperClient.php(563): Jasper\JasperClient->prepAndSend('http://ncore03....', Array, 'GET', NULL, true)

Any help on that issue will be much appreciated

Thank you!

v5.5.0
roie.shavit's picture
Joined: Nov 4 2013 - 5:17am
Last seen: 7 years 9 months ago

2 Comments:

#1
#2

Hello

Today i have resolved the same problem on my workstation.
I have added the gobal varible in windows NO_PROXY=localhost;127.0.0.1
They have resolved the problem.

Feedback
randomness