-
Notifications
You must be signed in to change notification settings - Fork 81
CUST-4514 added handling for non-json responses and tests #424
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
base: main
Are you sure you want to change the base?
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
nylas/models/errors.py
Outdated
""" | ||
|
||
request_id: str | ||
request_id: Optional[str] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't believe this is ever optional for our API effors
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I'll correct this!
self.headers: CaseInsensitiveDict = headers | ||
|
||
|
||
class NylasNetworkError(AbstractNylasSdkError): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where are we actually utilizing this new error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
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.