danikf/tik4net

Unhandled exception. System.IO.IOException: Can not read sentence from connection

Guillote29 opened this issue · 1 comments

Hi!

I have an API developed in .net Core 5.0 and under windows environment it works perfectly, but under linux environment, it gives me the following error in connection.open:

Unhandled exception. System.IO.IOException: Can not read sentence from connection
at tik4net.Api.ApiConnection.ReadSentence()
at tik4net.Api.ApiConnection.GetOne(String tag)
at tik4net.Api.ApiConnection.GetAll(String tag)+MoveNext()
at System.Collections.Generic.List1..ctor(IEnumerable1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at tik4net.Api.ApiConnection.CallCommandSync(String[] commandRows)

the connection code is:

ITikConnection connection = ConnectionFactory.CreateConnection(TikConnectionType.Api);
connection.Open(ipHost, hostUser, hostPassword);

what could be happening?
Thanks!

Hi!
Firewall? Could you debug it under linux? Or at least, setup full logging (connection events). Response from mikrotik is empty string. So far - no idea why :-)

I personally don't use linux so I can't verify the functionality.

D