You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am attempting to execute a /system/script/run command. The script is executed correctly on the router, but this library is failing with a tik4net.TikCommandUnexpectedResponseException exception.
Exception thrown: 'tik4net.TikCommandUnexpectedResponseException' in tik4net.dll
/system/script/run
.id=TestScript
MESSAGE: Single response sentence expected.
COMMAND: /system/script/run
.id=TestScript Format: Default
RESPONSE:
ApiReSentence:.section=0
ApiReSentence:.section=1
ApiDoneSentence:
tik4net.TikCommandUnexpectedResponseException: Single response sentence expected.
COMMAND: /system/script/run
.id=TestScript Format: Default
RESPONSE:
ApiReSentence:.section=0
ApiReSentence:.section=1
ApiDoneSentence:
at tik4net.Api.ApiCommand.EnsureSingleResponse(IEnumerable`1 response)
at tik4net.Api.ApiCommand.ExecuteNonQuery()
at ...
It looks like it just doesn't like the ApiReSentence:.section=* lines.
If I manually run the script through the terminal, I do get the "downloading" status thing text, and I assume that is what the .section=* messages are. So the API likely just have to ignore those?
I am attempting to execute a
/system/script/run
command. The script is executed correctly on the router, but this library is failing with atik4net.TikCommandUnexpectedResponseException
exception.It looks like it just doesn't like the
ApiReSentence:.section=*
lines.In this example I have a basic script that downloads https://Deantwo.GitHub.io/Tik4Net/TestFtp.txt using the
/tool fetch
command.TestScript script:
C# test code:
Router log:
If I manually run the script through the terminal, I do get the "downloading" status thing text, and I assume that is what the
.section=*
messages are. So the API likely just have to ignore those?The text was updated successfully, but these errors were encountered: