Hello everyone!
I am facing errors on various Nylas APIs on my email client application.
Specifically in the send email Python SDK.
My code is the following
try:
message = client.messages.send(
grant_id,
request_body=request_body
)
return message.data
except Exception as e:
error_logger = logging.getLogger("error_logger")
error_logger.error(f"Error Logger: send_nylas_email: Exception in email sending: {e}: {str(e)}")
return e
The exception I am getting is the following
e = NylasApiError(‘error unmarshaling graph draft response’)
e.type = ‘internal_error’
e.dict = {‘request_id’: ‘6333320352-714068b6-253f-49bd-aeea-631b053c1a0a’, ‘status_code’: 500, ‘type’: ‘internal_error’, ‘provider_error’: None}
{
"request_id": "8984311688-02cbb906-d77c-43bc-9d51-f470eedaaca0",
"error": {
"type": "timeout_error",
"message": "Request timed out. Please try with a smaller page size or use a narrow filter so that the request can be completed within the timeout period. For more information, please go to https://developer.nylas.com/docs/api/errors/500-response/#error-504---provider-error."
}
}