-
-
Notifications
You must be signed in to change notification settings - Fork 249
internal server error while getting root.tois.children #1349
Replies: 1 comment · 2 replies
-
To get help, you'll want to provide the stack trace and also the XML request leading to this error response from the server. You can capture that by enabling debug logging. |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
Beta Was this translation helpful? Give feedback.
All reactions
-
It looks like your server is having issues retrieving one or more of the predefined distinguished folders. If you're not on the latest exchangelib version already, try upgrading. Otherwise, you'll need to go into --- a/exchangelib/folders/roots.py
+++ b/exchangelib/folders/roots.py
@@ -172,7 +172,9 @@ class RootOfHierarchy(BaseFolder, metaclass=EWSMeta):
for cls in self.WELLKNOWN_FOLDERS
if cls.get_folder_allowed and cls.supports_version(self.account.version)
]
- for f in FolderCollection(account=self.account, folders=distinguished_folders).resolve():
+ for df in distinguished_folders:
+ print(df)
+ f = FolderCollection(account=self.account, folders=[df]).resolve()[0]
if isinstance(f, MISSING_FOLDER_ERRORS):
# This is just a distinguished folder the server does not have
continue |
Beta Was this translation helpful? Give feedback.
-
Hi, i am facing an error while calling root.tois.children with the error Internal Server occurred for mailbox on prem exchange server. Any one else faced this issue ? While debuggin i can see Account object getting created and so are the root and tois object but children and folder objects are all showing internal server occurred
Beta Was this translation helpful? Give feedback.
All reactions