tik4net icon indicating copy to clipboard operation
tik4net copied to clipboard

IOException: Can not read sentence from connection

Open P00HB33R opened this issue 4 years ago • 1 comments

Hi

When trying to use tik4net in net6 api solution I am get this error. Have tried all combos and all throw same error.

IOException: Can not read sentence from connection tik4net.Api.ApiConnection.ReadSentence() tik4net.Api.ApiConnection.GetOne(string tag) tik4net.Api.ApiConnection.GetAll(string tag)+MoveNext() System.Collections.Generic.List<T>..ctor(IEnumerable<T> collection) System.Linq.Enumerable.ToList<TSource>(IEnumerable<TSource> source) tik4net.Api.ApiConnection.CallCommandSync(string[] commandRows) tik4net.Api.ApiCommand.ExecuteScalarInternal(string target, bool allowReturnDefault, string defaultValue) tik4net.Api.ApiCommand.ExecuteScalarOrDefault() tik4net.Api.ApiConnection.Login_v3(string user, string password) tik4net.Api.ApiConnection.Open(string host, int port, string user, string password) tik4net.Api.ApiConnection.Open(string host, string user, string password) DCAPIServer.Controllers.TestController.GetQBytes() in TestController.cs + connection.Open(host, user, pass);

P00HB33R avatar Dec 06 '21 10:12 P00HB33R

It works (see tik4net.coreconsole) ... So the problem should be somewhere else (did you allow API on mikrotik router?) SSL or without SSL?

danikf avatar Dec 22 '21 19:12 danikf