You need to sign in to do that
Don't have an account?
Flex Error
Anyone seen this error before? I am trying to run a flex app on a web server.
(com.salesforce.events::ApexFaultEvent)#0
bubbles = false
cancelable = true
context = (null)
currentTarget = (null)
eventPhase = 2
fault = (mx.rpc::Fault)#1
errorID = 0
faultCode = "Server.Error.Request"
faultDetail = "Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://www.salesforce.com/services/Soap/u/11.0"]. URL: http://www.salesforce.com/services/Soap/u/11.0"
faultString = "HTTP request error"
message = "faultCode:Server.Error.Request faultString:'HTTP request error' faultDetail:'Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://www.salesforce.com/services/Soap/u/11.0"]. URL: http://www.salesforce.com/services/Soap/u/11.0'"
name = "Error"
rootCause = (flash.events::IOErrorEvent)#2
bubbles = false
cancelable = false
currentTarget = (flash.net::URLLoader)#3
bytesLoaded = 0
bytesTotal = 0
data = (null)
dataFormat = "text"
eventPhase = 2
target = (flash.net::URLLoader)#3
text = "Error #2032: Stream Error. URL: http://www.salesforce.com/services/Soap/u/11.0"
type = "ioError"
message = (mx.messaging.messages::ErrorMessage)#4
body = (Object)#5
clientId = "DirectHTTPChannel0"
correlationId = "026E48D3-1BFD-8AA6-A5D6-CDE8A1C8B7D8"
destination = ""
extendedData = (null)
faultCode = "Server.Error.Request"
faultDetail = "Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://www.salesforce.com/services/Soap/u/11.0"]. URL: http://www.salesforce.com/services/Soap/u/11.0"
faultString = "HTTP request error"
headers = (Object)#6
messageId = "154CD995-435D-2011-47FB-CDE8A2A25895"
rootCause = (flash.events::IOErrorEvent)#2
timestamp = 0
timeToLive = 0
messageId = "154CD995-435D-2011-47FB-CDE8A2A25895"
target = (null)
token = (mx.rpc::AsyncToken)#7
message = (mx.messaging.messages::HTTPRequestMessage)#8
body = "<se:Envelope xmlns:se="http://schemas.xmlsoap.org/soap/envelope/"><se:Header xmlns:sfns="urn:partner.soap.sforce.com"/><se:Body><login xmlns="urn:partner.soap.sforce.com" xmlns:ns1="sobject.partner.soap.sforce.com"><username>xxxxxxxx@xxxxxx.com</username><password>xxxxxxxxxxxxx9KYz1Hmt965XXXXQcNVpjaq61</password></login></se:Body></se:Envelope>"
clientId = (null)
contentType = "text/xml; charset=UTF-8"
destination = "DefaultHTTP"
headers = (Object)#9
DSEndpoint = "direct_http_channel"
httpHeaders = (Object)#10
Accept = "text/xml"
SOAPAction = """"
X-Salesforce-No-500-SC = "true"
messageId = "026E48D3-1BFD-8AA6-A5D6-CDE8A1C8B7D8"
method = "POST"
recordHeaders = false
timestamp = 0
timeToLive = 0
url = "http://www.salesforce.com/services/Soap/u/11.0"
responders = (Array)#11
[0] (::SalesForceResponder)#12
result = (null)
type = "fault"
in addition, you will need to pass a security token appended to your password unless you have enabled the IP range in your network configuration ( under setup)
it does look like you have done this correctly.
both will generate the io error you see.
if your server is not HTTPS, but is HTTP, you can set that on the connection, something like this
fault from operation: (com.salesforce.events::ApexFaultEvent)#0
bubbles = false
cancelable = true
context = (null)
currentTarget = (null)
eventPhase = 2
fault = (mx.rpc::Fault)#1
errorID = 0
faultCode = "Server.Error.Request"
faultDetail = "Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: https://na6.salesforce.com/services/Soap/u/11.0/511500D300000001JdX"]. URL: https://na6.salesforce.com/services/Soap/u/11.0/511500D300000001JdX"
faultString = "HTTP request error"
message = "faultCode:Server.Error.Request faultString:'HTTP request error' faultDetail:'Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: https://na6.salesforce.com/services/Soap/u/11.0/511500D300000001JdX"]. URL: https://na6.salesforce.com/services/Soap/u/11.0/511500D300000001JdX'"
name = "Error"
rootCause = (flash.events::IOErrorEvent)#2
bubbles = false
cancelable = false
currentTarget = (flash.net::URLLoader)#3
bytesLoaded = 0
bytesTotal = 0
data = (null)
dataFormat = "text"
eventPhase = 2
target = (flash.net::URLLoader)#3
text = "Error #2032: Stream Error. URL: https://na6.salesforce.com/services/Soap/u/11.0/511500D300000001JdX"
type = "ioError"
message = (mx.messaging.messages::ErrorMessage)#4
body = (Object)#5
clientId = "DirectHTTPChannel0"
correlationId = "D3625C78-A464-C5A2-9556-DECD3F2324E7"
destination = ""
extendedData = (null)
faultCode = "Server.Error.Request"
faultDetail = "Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: https://na6.salesforce.com/services/Soap/u/11.0/511500D300000001JdX"]. URL: https://na6.salesforce.com/services/Soap/u/11.0/511500D300000001JdX"
faultString = "HTTP request error"
headers = (Object)#6
messageId = "497965BD-57E0-69D6-8A53-DECD405BB1A8"
rootCause = (flash.events::IOErrorEvent)#2
timestamp = 0
timeToLive = 0
messageId = "497965BD-57E0-69D6-8A53-DECD405BB1A8"
target = (null)
token = (mx.rpc::AsyncToken)#7
message = (mx.messaging.messages::HTTPRequestMessage)#8
body = "<se:Envelope xmlns:se="http://schemas.xmlsoap.org/soap/envelope/"><se:Header xmlns:sfns="urn:partner.soap.sforce.com"><sfns:SessionHeader><sessionId>511500D300000001JdX!AR8AQEtJKr.DwggK5nqnCWpB1cy_jAFzuxVcV2gKEtssnm7pbax4FyM3pUk9se5kyCK7fsDNO725DKv6SW8_grvzQfmCLdVo</sessionId></sfns:SessionHeader><sfns:LoginScopeHeader><organizationId>00D300000001JdXEAU</organizationId></sfns:LoginScopeHeader></se:Header><se:Body><query xmlns="urn:partner.soap.sforce.com" xmlns:ns1="sobject.partner.soap.sforce.com"><queryString>Select Name From User where Id = '005300000011SNoAAM'</queryString></query></se:Body></se:Envelope>"
clientId = (null)
contentType = "text/xml; charset=UTF-8"
destination = "DefaultHTTPS"
headers = (Object)#9
DSEndpoint = "direct_http_channel"
httpHeaders = (Object)#10
Accept = "text/xml"
SOAPAction = """"
X-Salesforce-No-500-SC = "true"
messageId = "D3625C78-A464-C5A2-9556-DECD3F2324E7"
method = "POST"
recordHeaders = false
timestamp = 0
timeToLive = 0
url = "https://na6.salesforce.com/services/Soap/u/11.0/511500D300000001JdX"
responders = (Array)#11
[0] (::SalesForceResponder)#12
result = (null)
type = "fault"
We were able to connect to na5.salesforce.com from flex, but not the default connection www.salesforce.com.
It looks like someone made the required update, as I'm no longer seeing the error. Hopefully this addressed your issue as well.
Thank you James and Dave!
I'm also hitting this error when trying to use the http protocol from the Flex API. My code is taken from the sample:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" applicationComplete="login()">
<mx:Script>
<![CDATA[
import com.salesforce.Connection;
import com.salesforce.objects.LoginRequest;
import com.salesforce.AsyncResponder;
import com.salesforce.events.ApexFaultEvent;
private function login():void
{
var lr:LoginRequest = new LoginRequest();
var conn:Connection = new Connection();
//set the username, password, token on component
lr.password = "myPassword" + "myToken";
lr.username = "myUserName";
var loginResponder:AsyncResponder = new AsyncResponder(loginCallback, faultHandler);
lr.callback = loginResponder;
conn.protocol = "http";
conn.login(lr);
}
}
private function faultHandler(fault:Object):void
{
trace("fault " + fault.toString());
if (fault instanceof ApexFaultEvent)
{
trace("fault: " + ApexFaultEvent(fault).message);
}
}
private function loginCallback(result:Object):void
{
trace("logged in " + result.toString());
}
]]>
</mx:Script>
</mx:Application>
This code logs in correctly when using the https protocol. I get the following fault when changing the protocol to http:
fault: (mx.messaging.messages::ErrorMessage)#0
body = (null)
clientId = "DirectHTTPChannel0"
correlationId = "4985F3E3-6C71-97A9-350A-63505D74A74B"
destination = ""
extendedData = (null)
faultCode = "Server.Error.Request"
faultDetail = "Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://www.salesforce.com/services/Soap/u/11.0"]. URL: http://www.salesforce.com/services/Soap/u/11.0"
faultString = "HTTP request error"
headers = (Object)#1
DSStatusCode = 0
messageId = "3EC0A1B7-2744-64DB-3C58-635063AEC548"
rootCause = (flash.events::IOErrorEvent)#2
bubbles = false
cancelable = false
currentTarget = (flash.net::URLLoader)#3
bytesLoaded = 0
bytesTotal = 0
data = (null)
dataFormat = "text"
eventPhase = 2
target = (flash.net::URLLoader)#3
text = "Error #2032: Stream Error. URL: http://www.salesforce.com/services/Soap/u/11.0"
type = "ioError"
timestamp = 0
timeToLive = 0
I've also tried the suggestion at http://www.salesforce.com/us/developer/docs/api/Content/implementation_considerations.htm
to try the URL of:
http://www.salesforce.com/services/Soap/c/15.0
conn.serverUrl = "http://www.salesforce.com/services/Soap/c/15.0";
conn.protocol = "http";
This also produces a similar fault:
fault [FaultEvent fault=[RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://www.salesforce.com/services/Soap/c/15.0"]. URL: http://www.salesforce.com/services/Soap/c/15.0"] messageId="1600E819-CF4C-7C87-3989-63457DC378DB" type="fault" bubbles=false cancelable=true eventPhase=2]
fault: (mx.messaging.messages::ErrorMessage)#0
body = (null)
clientId = "DirectHTTPChannel0"
correlationId = "000507BA-071A-A8AE-5521-634574DA02AC"
destination = ""
extendedData = (null)
faultCode = "Server.Error.Request"
faultDetail = "Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://www.salesforce.com/services/Soap/c/15.0"]. URL: http://www.salesforce.com/services/Soap/c/15.0"
faultString = "HTTP request error"
headers = (Object)#1
DSStatusCode = 0
messageId = "1600E819-CF4C-7C87-3989-63457DC378DB"
rootCause = (flash.events::IOErrorEvent)#2
bubbles = false
cancelable = false
currentTarget = (flash.net::URLLoader)#3
bytesLoaded = 0
bytesTotal = 0
data = (null)
dataFormat = "text"
eventPhase = 2
target = (flash.net::URLLoader)#3
text = "Error #2032: Stream Error. URL: http://www.salesforce.com/services/Soap/c/15.0"
type = "ioError"
timestamp = 0
timeToLive = 0
Finally I've tried setting the URL to "http://na5.salesforce.com" and "http://www.salesforce.com", and in both these cases the response is a fault and is bringing back the HTML page source for those addresses.
I've run out of ideas at the moment and would greatly appreciate some suggestions and insight!
Thanks in advance,
David