CUST-4514 added handling for non-json responses and tests#424
Open
CUST-4514 added handling for non-json responses and tests#424
Conversation
…es-html-fastly-empty-etc-stemming-from-500-s
…ained backwards compatibility
…es-html-fastly-empty-etc-stemming-from-500-s
…ained backwards compatibility
AaronDDM
reviewed
Aug 27, 2025
nylas/models/errors.py
Outdated
| """ | ||
|
|
||
| request_id: str | ||
| request_id: Optional[str] |
Contributor
There was a problem hiding this comment.
I don't believe this is ever optional for our API effors
Contributor
Author
There was a problem hiding this comment.
Thanks, I'll correct this!
| self.headers: CaseInsensitiveDict = headers | ||
|
|
||
|
|
||
| class NylasNetworkError(AbstractNylasSdkError): |
Contributor
There was a problem hiding this comment.
Where are we actually utilizing this new error?
Contributor
Author
There was a problem hiding this comment.
Nowhere yet, the idea is that it will replace the proposed non-json handling implementation in the future, we currently raise a NylasApiError to keep backwards compatibility as a priority, let me know if we should just use this instead.
…rmation to non-json error
Pull Request Summary
Functional Tests
Files Changed
View more in PlayerZero |
…es-html-fastly-empty-etc-stemming-from-500-s
…es-html-fastly-empty-etc-stemming-from-500-s
nylas + PlayerZeroSimulations
View more in PlayerZero |
…es-html-fastly-empty-etc-stemming-from-500-s
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
License
I confirm that this contribution is made under the terms of the MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner.