From 03bb39ecb2a81df13b15745f83f7cf5dd9ffc66f Mon Sep 17 00:00:00 2001 From: Mostafa Rashed <17770919+mrashed-dev@users.noreply.github.com> Date: Tue, 24 Sep 2024 13:31:00 -0400 Subject: [PATCH 1/2] Set request_id to None --- nylas/models/errors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nylas/models/errors.py b/nylas/models/errors.py index d59b61ba..83ff3def 100644 --- a/nylas/models/errors.py +++ b/nylas/models/errors.py @@ -134,7 +134,7 @@ def __init__( oauth_error: The error details from the API. status_code: The HTTP status code of the error response. """ - super().__init__(oauth_error.error_description, status_code) + super().__init__(oauth_error.error_description, None, status_code) self.error: str = oauth_error.error self.error_code: int = oauth_error.error_code self.error_description: str = oauth_error.error_description From 22bc7f9eebe1c468208d8b19dd7d5350a5f99d43 Mon Sep 17 00:00:00 2001 From: Mostafa Rashed <17770919+mrashed-dev@users.noreply.github.com> Date: Tue, 24 Sep 2024 13:32:02 -0400 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a26d56f9..2fa7ca33 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ Unreleased * Add support for from field for sending messages * Fix IMAP identifiers not encoding correctly * Add missing schedule-specific fields to Message model +* Fix NylasOAuthError not setting the status code properly v6.3.1 ----------------