Skip to content
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

GraphClient failed requests questions #593

Open
FingerlessGlov3s opened this issue Feb 25, 2025 · 0 comments
Open

GraphClient failed requests questions #593

FingerlessGlov3s opened this issue Feb 25, 2025 · 0 comments

Comments

@FingerlessGlov3s
Copy link

I'm running parsedmarc against a M365 Mailbox via graph and every now and then (every 1-2 days), a request to graph fails and it fails with Max retries exceeded Remote end closed connection without response. I've had a look at the code and the graph sdk and far as I can tell it only tries once. This also lines up that I can only see 1 request made to graph.microsoft.com when I look at the HTTP proxy (squid) I'm using. When it fails the parsedmarc process exits and has to be started again by systemd.

I've added these 2 parameters, to the GraphClient in mail/graph.py, not 100% if this will help but time will tell.

client_params["max_retries"] = 3
client_params["retry_backoff_factor"] = 0.8

Just wanted to make sure this approach is right and whether this could be added in the next offical release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant