Copy link to clipboard
Copied
Copy link to clipboard
Copied
Cedric,
I have upgrated the Air Version to 3.5 and the FlashBuilder to 4.6. Now I have the time out after 50 sec with this error
RPC Fault faultString="Request timed out" faultCode="Client.Error.RequestTimeout" faultDetail="The request timeout for the sent message was reached without receiving a response from the server."
I have tried to change the requestTimeout to the remote Object but the change doesn't work.
This is my code
var blazeService:RemoteObject = new RemoteObject;
cs = new ChannelSet();
var customChannel:Channel = new AMFChannel("my-amf", blazeUrl + "amf");
cs.addChannel(customChannel);
blazeService.channelSet = cs;
blazeService.requestTimeout = 150;
Could you help me again please?
thanks
Silvia P
Copy link to clipboard
Copied
try to insert this code after your line var customChannel:Channel = new AMFChannel("my-amf", blazeUrl + "amf");
public static const REQUESTS_TIME_OUT:int = 300; // 6minutes
customChannel.requestTimeout = REQUESTS_TIME_OUT; // set the timeout on the channel
URLRequestDefaults.idleTimeout=REQUESTS_TIME_OUT*1000; //this is the important line that you need
if still not works try to change the HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings on your PC and add a new DWORD key named
ReceiveTimeout
and fix a value of for example 180000 (3minutes)
Copy link to clipboard
Copied
Copy link to clipboard
Copied
try :
var chan:AMFChannel;
........................
........................
chan.netConnection.httpIdleTimeout = millisecond;
Copy link to clipboard
Copied
Copy link to clipboard
Copied
reset "netConnection.httpIdleTimeout" property
Copy link to clipboard
Copied
I have the same problem.
Copy link to clipboard
Copied
It´s still broken. Using AIR 3.6 and php. On server side I just put sleep(60) then return something and it is broken, but AIR doesn´t wait on Desktop, it DOES wait on an iPad we testet on. Works with Flex/Flash as well. Please fix this! It´s very important for our project.
3/8/2013 14:05:11.909 [INFO] mx.messaging.Channel 'AMF_Service' channel endpoint set to http://192.168.178.88/amf
3/8/2013 14:05:11.913 [INFO] mx.messaging.Producer 'DDE585D9-E1B3-7FFF-C152-4A1AEEDEDDA8' producer set destination to 'AMF_Service'.
3/8/2013 14:05:11.918 [INFO] mx.messaging.Producer 'DDE585D9-E1B3-7FFF-C152-4A1AEEDEDDA8' producer sending message '55DB88DB-8804-C756-818E-4A1AEEEDFA31'
3/8/2013 14:05:12.005 [DEBUG] mx.messaging.Channel 'AMF_Service' pinging endpoint.
3/8/2013 14:05:12.145 [INFO] mx.messaging.Channel 'AMF_Service' channel is connected.
3/8/2013 14:05:12.148 [DEBUG] mx.messaging.Channel 'AMF_Service' channel sending message:
(mx.messaging.messages::RemotingMessage)#0
body = (Array)#1
clientId = (null)
destination = "AMF_Service"
headers = (Object)#2
messageId = "55DB88DB-8804-C756-818E-4A1AEEEDFA31"
operation = "getStuff"
source = "AMF_Service"
timestamp = 0
timeToLive = 0
ChannelEvent: channel connect
3/8/2013 14:05:12.150 [INFO] mx.messaging.Producer 'DDE585D9-E1B3-7FFF-C152-4A1AEEDEDDA8' producer connected.
3/8/2013 14:05:12.257 [INFO] mx.messaging.Producer '836795A9-95A8-9886-8497-4A1AF03CE655' producer set destination to 'AMF_Service'.
3/8/2013 14:05:42.699 [DEBUG] mx.messaging.Channel 'AMF_Service' channel got status. (Object)#0
code = "NetConnection.Call.Failed"
description = "HTTP: Failed"
details = "http://localhost:37813/amf?hostport=192.168.178.88&https=N&id=-1"
level = "error"
[object Channel]
ChannelFaultEvent: NetConnection.Call.Failed: HTTP: Failed
[ChannelSet AMF_Service ]
ChannelFaultEvent: NetConnection.Call.Failed: HTTP: Failed
3/8/2013 14:05:42.701 [WARN] mx.messaging.Producer 'DDE585D9-E1B3-7FFF-C152-4A1AEEDEDDA8' producer channel faulted with Channel.Call.Failed NetConnection.Call.Failed: HTTP: Failed
3/8/2013 14:05:42.703 [ERROR] mx.messaging.Producer 'DDE585D9-E1B3-7FFF-C152-4A1AEEDEDDA8' producer fault for '55DB88DB-8804-C756-818E-4A1AEEEDFA31'.
[RemoteObject destination="AMF_Service" source="AMF_Service" channelSet="[ChannelSet AMF_Service ]"]
FaultEvent: NetConnection.Call.Failed: HTTP: Failed
3/8/2013 14:05:42.708 [INFO] mx.messaging.Channel 'AMF_Service' channel polling stopped.
3/8/2013 14:05:42.709 [INFO] mx.messaging.Channel 'AMF_Service' channel disconnected.
3/8/2013 14:05:42.710 [INFO] mx.messaging.Channel 'AMF_Service' channel has exhausted failover options and has reset to its primary endpoint.
3/8/2013 14:05:42.710 [INFO] mx.messaging.Channel 'AMF_Service' channel endpoint set to http://192.168.178.88/amf
ChannelEvent: lost connection
3/8/2013 14:05:42.712 [WARN] mx.messaging.Producer 'DDE585D9-E1B3-7FFF-C152-4A1AEEDEDDA8' producer channel disconnected.
3/8/2013 14:05:42.714 [DEBUG] mx.messaging.Channel 'AMF_Service' pinging endpoint.
3/8/2013 14:05:42.828 [INFO] mx.messaging.Channel 'AMF_Service' channel is connected.
ChannelEvent: channel connect
3/8/2013 14:05:42.828 [INFO] mx.messaging.Producer 'DDE585D9-E1B3-7FFF-C152-4A1AEEDEDDA8' producer connected.
Copy link to clipboard
Copied
@ph-pano-life
Could you please open a new bug report on this over at bugbase.adobe.com? When adding the bug, please include sample code or an application so we can quickly test this out internally. If you'd like to keep this private, feel free to email the attachment to me directly (ccampbel@adobe.com).
Once added, please post back with the URL so that others affected can add their comments and votes.
Thanks,
Chris
Copy link to clipboard
Copied
We ran into the same issue this week, having to send a custom file format as a ByteArray along with some custom mapped AS3 value objects to Zend AMF (knowing the file size can range from 100Ko to over 5Mo and request was systematically shut after 8-9 seconds on a Windows 10 desktop computer).
The solution is in fact to set two properties with the same value on the channel of your RemoteObject.
Let's say you instantiate it programmatically :
var remote : RemoteObject = new RemoteObject("zendamf");
var channel : AMFChannel = new AMFChannel ( "zendamf-application-endpoint", "http://domain.com/services/application/public/amf" );
channel.connectTimeout = 150; // seconds
channel.requestTimeout = 150; // seconds
var channelSet : ChannelSet = new ChannelSet();
channelSet.addChannel(channel);
remote.channelSet = channelSet;
remote.source = "AMF_Service";
Hope this helps !