Community discussions

 
flynno
Member Candidate
Member Candidate
Topic Author
Posts: 241
Joined: Wed Aug 27, 2014 8:11 pm

api login issues 6.46beta16

Mon Aug 05, 2019 9:53 pm

6.46beta16 installed on hap mini (smips) using PEAR2\Net\RouterOS; api no longer works to login.

PEAR2\Net\RouterOS\DataFlowException: Invalid username or password supplied. in /var/www/html/PEAR2/Net/RouterOS/Client.php:175
Stack trace: #0 /var/www/html/index.php(71):PEAR2\Net\RouterOS\Client->__construct('192.168.88.1', 'api', 'passwordincleartexthere') #1 {main}

Is there any solution for this issue?
 
benkhlifahaythem
just joined
Posts: 2
Joined: Mon Jun 24, 2019 9:19 am

Re: api login issues 6.46beta16

Tue Aug 13, 2019 4:45 pm

Same issue From V6.45.1

Code: Select all


use PEAR2\Net\RouterOS;
require_once 'PEAR2_Net_RouterOS-1.0.0b6.phar';

try{
$util = new RouterOS\Util($client = new RouterOS\Client('ip','user','pwd'));
} catch (Exception $e) {
die($e);
}

----OUT PUT-----

PEAR2\Net\RouterOS\DataFlowException: Invalid username or password supplied. in phar://C:/xampp/htdocs/test2/PEAR2_Net_RouterOS-1.0.0b6.phar/PEAR2_Net_RouterOS-1.0.0b6/src/PEAR2/Net/RouterOS/Client.php:175 Stack trace: #0 C:\xampp\htdocs\test2\example.php(8): PEAR2\Net\RouterOS\Client->__construct('ip','user','pwd') #1 {main}
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 5943
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: api login issues 6.46beta16

Tue Aug 13, 2019 4:49 pm

Who is online

Users browsing this forum: No registered users and 8 guests