routeros-api-php icon indicating copy to clipboard operation
routeros-api-php copied to clipboard

Inconsistent Responses

Open siunus opened this issue 1 year ago • 1 comments

Version of RouterOS RouterOS 6.48.3 (stable)

To Reproduce Running a query like the one below sometimes yields unexpected responses:

$query = (new Query('/ppp/secret/print'));
$res = $client->query($query)->read(false);

Expected behavior The correct response should look like this: image

However, after refreshing a couple of times, I got this instead: image

The parsed result is cut off in this section: image

Could someone explain where the problem might be?

siunus avatar Aug 15 '24 01:08 siunus

Hi! Looks like a bug on the RouterOS side, which version of ROS do you use? Did you tried other versions?

EvilFreelancer avatar Aug 15 '24 11:08 EvilFreelancer

I have the same issue here. /export results sometimes missing the end of the full export. If i run the export on router terminal, the output is full, but when i run the qury in router-os api, the results sometimes not contain the last X line. We have huge configurations, so the export contains about ~60000 line.

somzoli avatar Sep 19 '24 10:09 somzoli

In ssh (from my pc), the export works as expected. Seems its a [routeros-api-php] issue.

somzoli avatar Sep 19 '24 10:09 somzoli

For export (ssh), ive made a pull request for change executeAsync to execute. In ssh export this caused early quit from loop.

somzoli avatar Sep 20 '24 10:09 somzoli

Hello! Thanks, PR merged, release tagged as 1.5.4

EvilFreelancer avatar Sep 20 '24 11:09 EvilFreelancer