-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Too Many Requests: Max retries exceeded with url #31
Comments
Looking at similar issues with the requests package, probably need to be able to pass the I'll dig into this a bit tonight or tomorrow. Maybe allow passing/setting a dict of arguments to pass, ala: https://docs.python.org/3/tutorial/controlflow.html#unpacking-argument-lists |
Thanks for looking into this. I would be glad to help you test if need it.
On Mar 2, 2017 5:44 PM, "Jeremiah Coleman" ***@***.***> wrote:
Looking at similar issues with the requests package, probably need to be
able to pass the timeout parameter to those functions (
http://docs.python-requests.org/en/master/user/advanced/#timeouts).
Actually, might be good to be able to pass any kwargs down to that level
(i.e., proxies, certs).
I'll dig into this a bit tonight or tomorrow. Maybe allow passing/setting
a dict of arguments to pass, ala:
https://docs.python.org/3/tutorial/controlflow.html#unpacking-argument-lists
…
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@rariehle since I can't recreate locally, can you install the branch here: and try this: maybe play around with the |
@rariehle have you had a chance to test yet? |
Yes. Thank you very much for following up on this. I received a similar response. Tweaking with the timeout made the lag longer but not much change occurred. I am going to give you the whole error output this time:
ConnectionRefusedError Traceback (most recent call last) C:\Program Files\Anaconda3\lib\site-packages\requests\packages\urllib3\util\connection.py in create_connection(address, timeout, source_address, socket_options) C:\Program Files\Anaconda3\lib\site-packages\requests\packages\urllib3\util\connection.py in create_connection(address, timeout, source_address, socket_options) ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it During handling of the above exception, another exception occurred: NewConnectionError Traceback (most recent call last) C:\Program Files\Anaconda3\lib\site-packages\requests\packages\urllib3\connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw) C:\Program Files\Anaconda3\lib\site-packages\requests\packages\urllib3\connectionpool.py in _validate_conn(self, conn) C:\Program Files\Anaconda3\lib\site-packages\requests\packages\urllib3\connection.py in connect(self) C:\Program Files\Anaconda3\lib\site-packages\requests\packages\urllib3\connection.py in _new_conn(self) NewConnectionError: <requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x0000000005BD6908>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it During handling of the above exception, another exception occurred: MaxRetryError Traceback (most recent call last) C:\Program Files\Anaconda3\lib\site-packages\requests\packages\urllib3\connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, **response_kw) C:\Program Files\Anaconda3\lib\site-packages\requests\packages\urllib3\util\retry.py in increment(self, method, url, response, error, _pool, _stacktrace) MaxRetryError: HTTPSConnectionPool(host='login.eloqua.com', port=443): Max retries exceeded with url: /id (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x0000000005BD6908>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)) During handling of the above exception, another exception occurred: ConnectionError Traceback (most recent call last) C:\Program Files\Anaconda3\lib\site-packages\pyeloqua-0.4.3-py3.5.egg\pyeloqua\bulk.py in init(self, username, password, company, test, **kwargs) C:\Program Files\Anaconda3\lib\site-packages\pyeloqua-0.4.3-py3.5.egg\pyeloqua\pyeloqua.py in init(self, username, password, company, test, **kwargs) C:\Program Files\Anaconda3\lib\site-packages\requests\api.py in get(url, params, **kwargs) C:\Program Files\Anaconda3\lib\site-packages\requests\api.py in request(method, url, **kwargs) C:\Program Files\Anaconda3\lib\site-packages\requests\sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json) C:\Program Files\Anaconda3\lib\site-packages\requests\sessions.py in send(self, request, **kwargs) C:\Program Files\Anaconda3\lib\site-packages\requests\adapters.py in send(self, request, stream, timeout, verify, cert, proxies) ConnectionError: HTTPSConnectionPool(host='login.eloqua.com', port=443): Max retries exceeded with url: /id (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x0000000005BD6908>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)) |
|
I've spent considerable time (successfully) developing a similar Eloqua BULK extractor utility and I've come across this error occasionally. @inarvekar @rariehle do you happen to be behind a corporate firewall/proxy? If yes, you'll need to add proxy and proxyauth parameters to the http request(s) to access the Eloqua APIs. Perhaps @colemanja91 can add this as an optional config parameter in the init. |
When I attempt to create a Bulk object I get a Max retries error. The same authentication is working if I go directly to the Eloqua website. The site takes a few seconds to load in my work environment. I am wondering if I am having troubles with a proxy. Is there a sleep method or a way to tweak the retry interval?
conn = Bulk(company = 'my company', username = 'me', password = 'my password')
yields...
:
ConnectionError: HTTPSConnectionPool(host='login.eloqua.com', port=443): Max retries exceeded with url: /id (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x0000000005749400>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',))
The text was updated successfully, but these errors were encountered: