function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
simonjpalmersimonjpalmer 

Flex toolkit sample giving error 2032 IOErrorEvent HTTP request Error

is anyone successfully using the as3salesforce.swc library and associated examples to connect to salesforce.com?

I can't get past this error on login in the example code...

faultDetail = "Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: https://www.salesforce.com/services/Soap/u/11.0"]. URL: https://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:
https://www.salesforce.com/services/Soap/u/11.0"]. URL:
https://www.salesforce.com/services/Soap/u/11.0'"

I am using this in a standalone flex app hosted outside the salesforce framework.  I have adjusted the login code to reflect my username and password but I can't get it to work.

Any ideas?
simonjpalmersimonjpalmer
just in case anyone else comes across the same problem I "fixed" it by asking the user to supply their security token.  This is proving very unpopular with our users but it does at least work.
UndefUndef
I am still facing the same problem, how to add security token ?
simonjpalmersimonjpalmer
the security token is appended to the users password and the combined string is used for verification.  You will need to capture the security token either separately and append it to the password yourself, or tell the user to add it to the end. 

details of how to get a security token can be found at trust.salesforce.com