我需要获取邮件中的正文数据,很奇怪的问题是,曾经使用这个指令是可以成功获取的,但现在不知为何运行时会报错。

邮箱中设置的页面如下

完整的报错信息如下
\Work\xbot-v5-uia\src\ShadowBot.UIAutomation.Provider\Common\IPC\IPCServiceInfo.cs:line 52
Traceback (most recent call last):
File "C:\Program Files (x86)\ShadowBot\shadowbot-5.15.40\python\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\Program Files (x86)\ShadowBot\shadowbot-5.15.40\python\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Program Files (x86)\ShadowBot\shadowbot-5.15.40\python\lib\site-packages\xbot_interpreter.py", line 113, in <module>
main()
File "C:\Program Files (x86)\ShadowBot\shadowbot-5.15.40\python\lib\site-packages\xbot_interpreter.py", line 57, in main
try:
File "C:\Users\Administrator\AppData\Local\ShadowBot\users\641117237031915522\apps\dd581389-d782-46ff-891a-5b62d469e28a\xbot_robot\process1.py", line 9, in main
mailmessage_list = xbot_visual.email.retrieve_email(mail_kind="custom", address="imap.secureserver.net", port="993", use_ssl=True, username="jeeeeelf@petbell.shop", authcode=xbot_visual.decrypt("{\"secret\":1,\"value\":\"jg5onfSUtRVdmik4b3MlhQ==\"}"), only_unread=False, top="5", save_attachments=False, attachments_savefolder="", folder_name_specifc_mode="default", folder_name="INBOX", mark_as_read=True, keyword_in_from=None, keyword_in_to=None, keyword_in_subject=None, keyword_in_textBody=None, _block=("子流程1", 1, "获取邮件"))
File "<string>", line 91, in wrapper
File "<string>", line 86, in wrapper
File "<string>", line 172, in retrieve_email
File "<string>", line 53, in retrieve_mails_by_imap
File "<string>", line 115, in execute
File "<string>", line 88, in execute
xbot.errors.UIAError: Message:An error occurred while attempting to establish an SSL or TLS connection.
This usually means that the SSL certificate presented by the server is not trusted by the system for one or more of
the following reasons:
1. The server is using a self-signed certificate which cannot be verified.
2. The local system is missing a Root or Intermediate certificate needed to verify the server's certificate.
3. A Certificate Authority CRL server for one or more of the certificates in the chain is temporarily unavailable.
4. The certificate presented by the server is expired or invalid.
5. The set of SSL/TLS protocols supported by the client and server do not match.
6. You are trying to connect to a port which does not support SSL/TLS.
See https://github.com/jstedfast/MailKit/blob/master/FAQ.md#SslHandshakeException for possible solutions.
,NativeMessage:An error occurred while attempting to establish an SSL or TLS connection.
This usually means that the SSL certificate presented by the server is not trusted by the system for one or more of
the following reasons:
1. The server is using a self-signed certificate which cannot be verified.
2. The local system is missing a Root or Intermediate certificate needed to verify the server's certificate.
3. A Certificate Authority CRL server for one or more of the certificates in the chain is temporarily unavailable.
4. The certificate presented by the server is expired or invalid.
5. The set of SSL/TLS protocols supported by the client and server do not match.
6. You are trying to connect to a port which does not support SSL/TLS.
See https://github.com/jstedfast/MailKit/blob/master/FAQ.md#SslHandshakeException for possible solutions.
Code:-1,StackTrace:
at MailKit.Net.Imap.ImapClient.ConnectAsync(String host, Int32 port, SecureSocketOptions options, Boolean doAsync, CancellationToken cancellationToken)
at MailKit.Net.Imap.ImapClient.Connect(String host, Int32 port, SecureSocketOptions options, CancellationToken cancellationToken)
at MailKit.MailService.Connect(String host, Int32 port, Boolean useSsl, CancellationToken cancellationToken)
at SSGL462m3Tw7627gYwQ.b7OZla2vAS2nWkYC1on.MsO2jwiSEV(ImapClient , CancellationTokenSource ) in D:\Work\xbot-v5-uia\src\ShadowBot.UIAutomation.Provider\Utilities\ImapHelper.cs:line 391
at SSGL462m3Tw7627gYwQ.b7OZla2vAS2nWkYC1on.x152OovCQM(Boolean , Int32 , String , Boolean , String , String , String , String ) in D:\Work\xbot-v5-uia\src\ShadowBot.UIAutomation.Provider\Utilities\ImapHelper.cs:line 298
at ShadowBot.UIAutomation.Provider.Service.UtilitySe.UtilityService.RetrieveMailsByIMAP(String address, Int32 port, Boolean useSsl, String userName, String authCode, Boolean onlyUnread, Int32 top, Boolean markAsRead, String attachmentsSaveFolder, String folderName, String keywordInFrom, String keywordInTo, String keywordInSubject, String keywordInTextBody) in D:\Work\xbot-v5-uia\src\ShadowBot.UIAutomation.Provider\Service\UtilitySe\UtilityService.cs:line 42
at lambda_method19(Closure , l09C1n4sfPaX2Mipvb4 , Object[] )
at MILikt41I5htxEgfEiu.Bkxj5M4HKew8u2rj5WJ.ByF4PQhFA4(l09C1n4sfPaX2Mipvb4 , VCUxl2GbOcGy3BJVMPD ) in D:\Work\xbot-v5-uia\src\ShadowBot.UIAutomation.Provider\Common\IPC\IPCActionInvoker.cs:line 63
at uQwGq94YlTlv7IYqv5J.UbipI9484d1eI4WMQuG.grJ4kTRES0(l09C1n4sfPaX2Mipvb4 , YwWEF34Bg3JketuJyTl ) in D:\Work\xbot-v5-uia\src\ShadowBot.UIAutomation.Provider\Common\IPC\IPCActionInfo.cs:line 34
at YjxV8diCSA6m1h6IP3K.A2qHxkisgEAvO0CXjrp.JVciaJOkqZ(YwWEF34Bg3JketuJyTl ) in D:\Work\xbot-v5-uia\src\ShadowBot.UIAutomation.Provider\Common\IPC\IPCServiceInfo.cs:line 52
1.我尝试过更换邮箱IMAP服务器

2.关闭SSL
