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

API, Available from

Open Tahernejad opened this issue 3 years ago • 1 comments

Hello, I try on many devices with different version. If ip address trying to connet api is not listed on api available ip address list, no any error and action with script, it waiting and waiting.

Some times return "Error reading 1 bytes"

Tahernejad avatar Feb 03 '22 07:02 Tahernejad

Hi, this is expected behavior as client has to wait until timeout occurs. Until you receive packets with response you don’t really know what is happening.

Kamil

Wiadomość napisana przez Sajad Tahernejad @.***> w dniu 03.02.2022, o godz. 08:18:

 Hello, I try on many devices with different version. If ip address trying to connet api is not listed on api available ip address list, no any error and action with script, it waiting and waiting.

Some times return "Error reading 1 bytes"

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you are subscribed to this thread.

szastan avatar Feb 03 '22 07:02 szastan

As @szastan stated, this is expected behaviour and not a bug. If the API connection is coming from an IP address not listed in the address parameter on /ip/services api the router will silently drop the packets and your API connection will not receive a response.

jonth93 avatar Aug 16 '22 08:08 jonth93