Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Guillote29 opened this issue Sep 29, 2021 · 1 comment

Comments

@Guillote29
Copy link

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!

@danikf
Copy link
Owner

danikf commented Dec 23, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants