Beatbox icon indicating copy to clipboard operation
Beatbox copied to clipboard

QUERY_TIMEOUT: Your query request was running for too long

Open etrabelsi opened this issue 8 years ago • 4 comments

Can you add support for setting timeout in beatbox as parameter to the constructor ?

etrabelsi avatar Jan 17 '17 13:01 etrabelsi

I agree. Which one source do you use? Does this work for also you? (still without timeout setting?):

pip install git+https://github.com/hynekcer/beatbox-davisagli.git@7f628a789cba#egg=beatbox

If so then I can add the timeout setting and ask for commit to PyPI beatbox , otherwise "hibernation" of this project would continue because there are different clones by more authors and the clone on PyPI is not active more.

hynekcer avatar Jan 17 '17 13:01 hynekcer

@hynekcer It seems to be weird fork of this repository ,it doesn't support this kind of login.

self.sf = beatbox._tPartnerNS self.svc = beatbox.Client() self.svc.login(user_name, password + security_token)

any toughts?

etrabelsi avatar Jan 17 '17 13:01 etrabelsi

Do you want to set the timeout in the hopes of extending it so as to not get a QUERY_TIMEOUT result? if so that won't help, the QUERY_TIMEOUT response is generated from a server side timeout, and is not adjustable from the client.

superfell avatar Jan 17 '17 14:01 superfell

I think that a frequent requirement is to set a shorter value for the case that a simple query is unusually slow or the connection is sometimes broken but not known to be closed. Especially on a web server is a shorter timeout important because the user will more probably retry than wait. It usually works good surprisingly because the cache on SFDC is filled by necessary data by the first terminated request and the second request frequently succeeds fast.

hynekcer avatar Jan 17 '17 17:01 hynekcer