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
Trying to make a connection to the router with PHP 8.4 (FPM) fails with this error. No other changes made other than swapping from php82-php-fpm to php84-php-fpm
Have rolled back for now, will look at writing REST equiv of my class but like your old-API just fine and wondered if there was an easy fix.
Please do not just link back to the readme, the code work PERFECTLY on PHP8.2 but when moving to PHP8.4 with the exact same list of installed packages it fails with this error. API is enabled in both instances on the router and has been working perfectly for a long time.
The text was updated successfully, but these errors were encountered:
The "Stream timed out" exception typically occurs when the router is inaccessible through the API from the server hosting the application that uses this library. This is why I referred you to article in documentation, because approximately two-thirds of the issues reported in this repository are related to this problem.
That said, there might indeed be some issues with PHP 8.4. I recall seeing similar reports about version 8.3, but I was unable to reproduce the problem myself.
Additionally, I currently do not have a spare time to actively maintain this library. However, if you find this library valuable and would like to contribute, you are welcome to submit a pull request with your fixes. I will review, merge it, and tag a new release.
I tried several versions of php8.2php8.3 and php 8.4,
on php8.2.27 it runs normally but on php8.3 it can't, when I retrieve data stream time out,
then I tried on php8.4, on php8.4.4 and below I tried to retrieve the same data can't retrieve data description stream time out,
but when I tried on php8.4.5 and the latest php8.4.6 it can, no stream timeout occurs when retrieving data.
Trying to make a connection to the router with PHP 8.4 (FPM) fails with this error. No other changes made other than swapping from php82-php-fpm to php84-php-fpm
PHP Fatal error: Uncaught RouterOS\Exceptions\StreamException: Stream timed out in XXXX/evilfreelancer/routeros-api-php/src/Streams/ResourceStream.php:55
Stack trace:
#0 XXXX/evilfreelancer/routeros-api-php/src/APILengthCoDec.php(115): RouterOS\Streams\ResourceStream->read()
#1 XXXX/evilfreelancer/routeros-api-php/src/APIConnector.php(53): RouterOS\APILengthCoDec::decodeLength()
#2 XXXX/vendor/evilfreelancer/routeros-api-php/src/Client.php(255): RouterOS\APIConnector->readWord()
#3 XXXX/vendor/evilfreelancer/routeros-api-php/src/Client.php(310): RouterOS\Client->readRAW()
#4 XXXX/RouterOS.php(906): RouterOS\Client->read()
Have rolled back for now, will look at writing REST equiv of my class but like your old-API just fine and wondered if there was an easy fix.
Please do not just link back to the readme, the code work PERFECTLY on PHP8.2 but when moving to PHP8.4 with the exact same list of installed packages it fails with this error. API is enabled in both instances on the router and has been working perfectly for a long time.
The text was updated successfully, but these errors were encountered: