ERROR Terminal session AS400

Hi, I m developing robot that need to connect with AS400. For this prupose I’m using IBM ehllapi standard.

I am reciving this error:

Terminal session: There was an error connecting the terminal. Error Code: Error

In the terminal log:
14:01:54.1405 warn EhllapiWrapper.CallEhllApi(1) returned 1
14:01:54.2186 error EhllBridge.Attach error : NotConnected
14:01:54.2499 error System.Exception: Error al adjuntar a la sesión
en UiPath.Terminal.Generic.EHLLApi.EhllTerminal.InitializeEhll(ConnectionData connectionData)
14:01:54.2499 error en UiPath.Terminal.Generic.EHLLApi.EhllTerminal.InitializeEhll(ConnectionData connectionData)
14:01:54.2499 warn EhllapiWrapper.CallEhllApi(2) returned 1
14:01:54.2499 error EhllBridge.Detach error : NotConnected

I should first start the session, I need help,

Thanks,

I face same situation. When error occured on studio running/debugging, any operations on AS400 were failed. It can be rerun just only OS logoff and login again. Please give me some guide please.

Error logs are exactly same with above error.