Login error related to salesforce.com from Flex

Has anyone unexpectedly encountered login errors from their users trying to connect to salesforce.com from a Flex application using as3salesforce.swc?

I am getting the following error ... password removed to protect the innocent ...

App Domain = null
Api Server name = na3.salesforce.com
_internalServerUrl = https://na3.salesforce.com/services/Soap/u/14.0
loading the policy file: https://na3.salesforce.com/services/Soap/cross-domain.xml
Your application must be running on a https server in order to use https to communicate with salesforce.com!
login with creds
loading the policy file: https://na3.salesforce.com/services/crossdomain.xml
Your application must be running on a https server in order to use https to communicate with salesforce.com!
invoke login
intServerUrl is null
intServerUrl = https://na3.salesforce.com/services/Soap/u/14.0
_invoke login
'5A5D3012-7717-E3C2-9B39-FFBBFF1F1B47' producer set destination to 'DefaultHTTPS'.
Method name is: login
'direct_http_channel' channel endpoint set to http://localhost/pm_server/pm/
'5A5D3012-7717-E3C2-9B39-FFBBFF1F1B47' producer sending message 'E32C7199-72C1-B258-B483-FFBC1641173D'
'direct_http_channel' channel sending message:
(mx.messaging.messages::HTTPRequestMessage)#0
  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>simon.palmer@dialectyx.com</username><password>******</password></login></se:Body></se:Envelope>"
  clientId = (null)
  contentType = "text/xml; charset=UTF-8"
  destination = "DefaultHTTPS"
  headers = (Object)#1
  httpHeaders = (Object)#2
    Accept = "text/xml"
    SOAPAction = """"
    X-Salesforce-No-500-SC = "true"
  messageId = "E32C7199-72C1-B258-B483-FFBC1641173D"
  method = "POST"
  recordHeaders = false
  timestamp = 0
  timeToLive = 0
  url = "https://na3.salesforce.com/services/Soap/u/14.0"
'5A5D3012-7717-E3C2-9B39-FFBBFF1F1B47' producer connected.
Method name is: login
Error: Ignoring policy file at https://na3.salesforce.com/crossdomain.xml due to meta-policy 'by-content-type'.

'5A5D3012-7717-E3C2-9B39-FFBBFF1F1B47' producer acknowledge of 'E32C7199-72C1-B258-B483-FFBC1641173D'.
responseType: Fault
Saleforce Soap Fault: sf:INVALID_LOGIN
INVALID_LOGIN: Invalid username, password, security token; or user locked out.
Comunication Error : sf:INVALID_LOGIN : INVALID_LOGIN: Invalid username, password, security token; or user locked out. : [object Object]

      

+1


source to share


1 answer


Obviously, no one else is building Flex applications on top of salesforce.com.

yippee, me first.

Anyway, I only found out that this is a bug on salesforce.com as of December 6, 2008. The problem is that the scripts that handle the login do not cope with the required redirection due to the load balancing on the salesforce.com server.

It should be possible to walk through the front door of the www salesforce.com api with a url like ...

"https://www.salesforce.com/services/Soap/u/13.0";

      

where 13 represents the version of your API you are targeting. However, all users are actually assigned to a specific server, so the front door should redirect the login request to a suitable location, and this does not happen if you are sailing from Flex.

Desktop is to point your server in the url like ...



"https://na5.salesforce.com/services/Soap/u/13.0";

      

... this is what I was doing. It's great if you are one user constantly accessing the same resources, and your account remains attached to this server. However, if ...

  • You distribute your app, so anyone with a salesforce.com enterprise account can log in OR
  • Your account is roaming due to some internal load balancing (what happened to me)

then the fixed server provisioning approach won't work.

The error (as I understand it) is that the www route is not being redirected to your host server. The latest intelligence was that it will be fixed "soon".

I would like to mark this as an answer ...

+2


source







All Articles