我試圖用exchangelib登錄到exchangeserver。 當我嘗試運行該腳本時,它給了我一個錯誤: 文件「/usr/local/lib/python3.5/dist-packages/exchangelib/protocol.py」,第61行,在init assert isinstance(證書) 聲明錯誤python3 exchangelib憑證
從我所能理解的情況來看,這表示我的憑證variabel不是正確的類型。我已嘗試使用和不使用自動發現功能。我犯了同樣的錯誤。 這裏是相關的代碼。
credents = Credentials(username='domain\\aaa.fh', password= 'password'),
config = Configuration(server='domain.aaa.no', credentials= credents)
account = Account(
primary_smtp_address='[email protected]',
config=config,
autodiscover=True,
access_type=DELEGATE)