You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
We can use labels on messages to move them to another folder or even the trash. Right now, the correct label will be applied but the SDK will return an error.
To Reproduce
Some steps involved to reproduce the bug and any code samples you can share.
I have omitted the Try - Except to fully return the error message.
messageId = "<MESSAGE_ID>"
labelsDict = {}
labels = nylas.labels.all()
for label in labels:
labelsDict[label["name"]] = label["id"]
message = nylas.messages.get(messageId)
message.update_labels([labelsDict["trash"]])
message.save()
print(f"Your message was successfully deleted")
Describe the bug
We can use labels on messages to move them to another folder or even the trash. Right now, the correct label will be applied but the SDK will return an error.
To Reproduce
Some steps involved to reproduce the bug and any code samples you can share.
I have omitted the Try - Except to fully return the error message.
The error message is
Expected behavior
There shouldn't be an error message. We can do the same in Ruby without further issues
SDK Version:
Python 3.10.4
Nylas SDK 5.14.0
Additional context
While the error can be bypassed by using pass, there shouldn't be an error at all.
The text was updated successfully, but these errors were encountered: