Skip to content
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

Getting KeyError: 'folders' when trying to read subfolders of inbox #1343

Open
psmitak opened this issue Dec 13, 2024 · 1 comment
Open

Getting KeyError: 'folders' when trying to read subfolders of inbox #1343

psmitak opened this issue Dec 13, 2024 · 1 comment

Comments

@psmitak
Copy link

psmitak commented Dec 13, 2024

I am getting KeyError: 'folders' error when I am trying to access subfolders of Inbox of a shared online mailbox. The same code is working for rest of the mailboxes. There is no issue with permissions as well.

Below is the error:

Traceback (most recent call last): File "C:\virtualenvs\ctenv\lib\site-packages\cached_property.py", line 70, in __get__ return obj_dict[name] KeyError: 'folders'

I am using 4.7.4 version of ExchangeLib.

Could you please point out the cause of this issue?

Thanks,
Smita

@ecederstrand
Copy link
Owner

Thanks for the report. The KeyError is a consequence of the use of cached properties in exchangelib. The full stack trace for the exception contains more than what you posted, and the rest of the stack trace contains the actual cause of your exception.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants