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

IOException: Can not read sentence from connection #83

Open
P00HB33R opened this issue Dec 6, 2021 · 1 comment
Open

IOException: Can not read sentence from connection #83

P00HB33R opened this issue Dec 6, 2021 · 1 comment

Comments

@P00HB33R
Copy link

P00HB33R commented Dec 6, 2021

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..ctor(IEnumerable collection)
System.Linq.Enumerable.ToList(IEnumerable 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);

@danikf
Copy link
Owner

danikf commented Dec 22, 2021

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

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