PDA

View Full Version : Backend Timeout


Gnome
11-02-2006, 10:24 AM
Okay...

I was following the wonderful PHP Contact example and applying it to my own project, but I get this error:

ERROR: backend timeout for http://localhost/laszlo/profile.php: null http response body


Now I read about creating an xml file (crossdomai.xml) in the root directory, but may I missed where to put it and that is my problem. Don't know.

I also tested my PHP and it is working fine.
I dumped the XML, and that looks good as well.

Here are some code snipets from the lzx:

<dataset name="dset" src="http://localhost/laszlo/profile.php" request="true" type="http"/>

<method name="sendData" args="spot_id">
var d=canvas.datasets.dset;
var p=new LzParam();
p.addValue("spot_id", SrchFld.getText(), true);
d.setQueryString(p);
d.doRequest();
</method>

If you need more info, or can point me in the right direction, it would be greatly appreciated.

Thanks!

Gnome
11-02-2006, 10:25 AM
I should mention one more thing...

I receive this error in the debugger window when the application loads. No other events have ocured.

thanks again.

jks_pdx
11-02-2006, 12:26 PM
This error almost always means you have a typo in your php. Often it is a missing semicolon. If you go to your php page in your browser and view souce, you'll see it return an empty page. You can use echo followed by exit in your php to help debug just how far you are getting though the php file.

apsDev
12-06-2006, 03:39 AM
Hi,

I am getting this same error while posting my form's data to a php page.

Error message : ERROR: backend timeout for [http://localhost/file.php] null http response body

I cudn't find any mistake in my php file as I am able to insert the data (the form's data is inserting successfully).


Please post if anybody is having the solution.

Thx
apsDev

bdario
09-21-2007, 07:08 AM
I'm having the same problem but it's happening since I upgraded from OL 4.0.2 to 4.0.3
Any solution? thanks

rajubitter
09-21-2007, 10:04 AM
A good thing to do when you run into such a problem is to track your HTTP traffic. Use Firebug, activate it and watch the network traffic. You'll see every request with the response data coming from the server.
http://www.getfirebug.com

You'll at least be able to see if the error is server side or within OpenLaszlo. For IE there are similar tools available, which are free.

I use ServiceCapture as well, but that's commercial (bought it before I knew Firebug). It sets up a proxy server, so all requests from your different browsers can be run through the proxy, and you'll see the network traffic.
http://www.kevinlangdon.com/serviceCapture/

ServiceCapture supports bandwith throtteling (nice if you want to find out how your app would load with a dial-up connection) and is the only tool I know capable of deserializing and displaying all Flash Remoting and AMF traffic.

Best,
Raju