IBM Advanced Studies

 View Only

IBM RPA Studio Connecting to IMAP Gmail server timeout

  • 1.  IBM RPA Studio Connecting to IMAP Gmail server timeout

    Posted Thu February 02, 2023 09:25 AM
    I am trying to connect to IMAP server with the following
    IMAP: imap.gmail.com
    port: 993
    Use SSL: ON
    Send Emails: OFF
    Enable Log: ON

    while the POP & IMAP is enabled in the email I am using to connect , When I run my script it fails to connect with the following stack trace: 

    System.Net.Sockets.SocketException (0x80004005): A connection attempt failed because the connected party did not properly respond after a period of time,
    or established connection failed because connected host has failed to respond 142.250.113.109:993
    at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
    at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
    at System.Net.Sockets.Socket.Connect(IPAddress address, Int32 port)
    at MailKit.Net.Imap.ImapClient.Connect(String host, Int32 port, SecureSocketOptions options, CancellationToken cancellationToken)
    at MailKit.MailService.<>c__DisplayClass45_0.<ConnectAsync>b__0()
    at System.Threading.Tasks.Task.Execute()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at WDG.Automation.Base.MailKitClientBase`1.<EnsureClientConnected>d__23.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at WDG.Automation.Base.MailKitClientBase`1.<ConnectCore>d__21.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at WDG.Automation.Base.ImapConnectCommand.<Execute>d__43.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at WDG.Automation.Language.ErrorHandler.m0nvU46Nja(Exception )
    at WDG.Automation.Language.ErrorHandler.HandleExecutionExceptionIfNeeded(Exception exception, IAutomationCommand command)
    at WDG.Automation.Language.CommandInterpreter.<Run>d__12.vQ7xHXNECMOJPEvfGI5(Object , Object , Object )
    at WDG.Automation.Language.CommandInterpreter.<Run>d__12.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at WDG.Automation.Language.ScriptInterpreter.<RunCore>d__17.MoveNext()

    ------------------------------
    Mohamed Ramadan
    ------------------------------