Community discussions

MikroTik App
 
greatestfen
just joined
Topic Author
Posts: 1
Joined: Wed Jul 27, 2022 3:47 pm

API Error: Failed while receiving initial length byte

Wed Jul 27, 2022 3:58 pm

Hello!
I use a solution that controls users via RouterOS API by a PHP script. It's something like a billing system - when the balance is below zero, the script connects to a router and just disables ARP entry.
This simple solution worked for years till today. Now I'm receiving this error:
RouterOS: Unable to connect. Error: Failed while receiving initial length byte at /home/httpd/vhosts/domain.com/httpdocs/archive/include/routerOS.php line 231
The API code that used is here:
https://github.com/pear2/Net_RouterOS

This error I'm facing on all my routers, there are different versions, including older than 6.43. Totally don't have any ideas.
Please help!

Who is online

Users browsing this forum: aoravent, totpbi and 25 guests