HTTPSConnectionPool ERROR - Can we modify the $top value in query?
See original GitHub issueI get the following error when pulling emails from an inbox.
HTTPSConnectionPool(host='graph.microsoft.com', port=443): Max retries exceeded with url: /v1.0/users/myemail@mydomain.com/mailFolders/Inbox/messages?%24top=999&%24expand=attachments%28%24select%3Dname%29 (Caused by ResponseError('too many 504 error responses'))
If i use the following code to limit the number of emails to process, it seems to work:
messages = inbox.get_messages(limit=20, batch=20, query=q)
But when I change to this, it will idle for a bit then spit out the error above:
messages = inbox.get_messages(limit=None, batch=200, query=q)
Any way around this? Am i just hitting some MS Graph throttling limit?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:15 (6 by maintainers)
Top Results From Across the Web
HTTPSConnectionPool Max retries exceeded - Stack Overflow
I 've found that this error happens when some item in one of my views throws an exception. For example, when using the...
Read more >ProxyError: HTTPSConnectionPool : Forums - PythonAnywhere
I have the same error raise ProxyError(e, request=request) ... Hi, I am having the same issue, can you please whitelist this: www.nba2k.io.
Read more >Agent Proxy Configuration - Datadog Docs
Starting with Agent v6.4, you can set your proxy settings through environment variables: DD_PROXY_HTTPS : Sets a proxy server for https requests.
Read more >Troubleshoot the Splunk Add-on for Microsoft Office 365
Click Save after you change permissions. Click Grant permissions to finish applying the permission changes. Cannot ingest Message Trace data after configuring a ......
Read more >Resolve errors from API Gateway integration with Lambda ...
How can I resolve the errors that I receive when I integrate API Gateway with a Lambda ... query to search for Lambda...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ll try running it today with
request_retries=None
andrequests_delay=500
and see what happens. Thank you @janscas@arkadas19
I actually still would have issues periodically. What I ended up doing was wrapping the calendar.get_events() method in a try except block and setting a 10 retry limit. Everything has ran perfect since making these changes. Maybe this code will help give you an idea.
`
`