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

Fixing unhandled exception for microsoft driver #10223

Merged
merged 1 commit into from
Feb 14, 2025

Conversation

guillim
Copy link
Contributor

@guillim guillim commented Feb 14, 2025

Fixing a difficult bug: an unhandled exception for microsoft driver when one of the many Microsoft BATCH request failed.

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

This PR enhances error handling for Microsoft Graph API batch requests, focusing on previously unhandled exceptions and improved error reporting.

  • Added status code validation in microsoft-handle-error.service.ts to catch undefined GraphError status codes
  • Enhanced batch response parsing in microsoft-get-messages.service.ts to include both error details and status codes
  • Modified handleTemporaryException in message-import-exception-handler.service.ts to throw MessageImportException when throttle failures exceed max attempts
  • Added error object structure standardization across Microsoft batch requests for better debugging
  • Improved error propagation in batch processing to prevent silent failures

3 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile

Copy link
Contributor

@bosiraphael bosiraphael left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@guillim guillim merged commit bab529b into main Feb 14, 2025
35 checks passed
@guillim guillim deleted the fix-microsoft-unhandled-error branch February 14, 2025 17:50
Copy link
Contributor

Thanks @guillim for your contribution!
This marks your 66th PR on the repo. You're top 1% of all our contributors 🎉
See contributor page - Share on LinkedIn - Share on Twitter

Contributions

prastoin pushed a commit that referenced this pull request Feb 14, 2025
Fixing a difficult bug: an unhandled exception for microsoft driver when
one of the many Microsoft BATCH request failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

2 participants