You need to sign in to do that
Don't have an account?
neuf
Query timeout problem (Google App Engine)
Hi everybody,
I'm building an application on Google App Engine, using the web api. The application basically allows you to log in, query for some data and present it.
I started by using a developer salesforce account and all worked well: the login and the query.
But then I moved to a "real" salesforce account in a "real" environment.
I manage to login successfully, but when I query for data I get the following error:
com.sforce.ws.transport.GAEHttpTransport getContent: getContent: Timeout while fetching: https://na5-api.salesforce.com/services/Soap/u/15.0/00D200000000FyX
I get this even if I narrow my query to a pretty small one.
Are there any timeout settings I should follow?
Is there any difference between a developer account and a "real" account that affects querying?
Thanks, Neuf.
Google Appengine limits the urlFetch time to 5 seconds and that is causing this. We have posted a solution to this issue that will increase the deadline to 10secs (which is the max allowed by GAE) at sfdc-wsc website. Look at the following link:
http://code.google.com/p/sfdc-wsc/issues/detail?id=11
Hope this helps.
Thanks for the tip, but it didn't work for me :-(
Tried adding this code:
ConnectorConfig config = new ConnectorConfig();
config.setReadTimeout(10000); // 10 seconds
config.setConnectionTimeout(10000); // 10 seconds
but I'm still getting the same timeout when I perform a query call.
Since it always works with my developing account and never works with a production account, I'm suspecting some SForce settings or environment issues. I'm guessing GAE can't distinguish between the 2 accounts.
Any other ideas?