=== TESTING AGENT PROFIT ===
Attempting login for andytang with role agent...
Request URL: https://app.shuifungaccounting.com/api/auth/login
Request Method: POST
Request Headers: Array
(
[0] => Content-Type: application/x-www-form-urlencoded
)
Request Data: Array
(
[username] => andytang
[password] => ERP123go!
[role] => agent
)
HTTP Code: 401
Response: Array
(
[status] => 401
[message] => Invalid username or password
[errors] => Array
(
)
)
Test failed: API Error (HTTP 401): Array
(
[status] => 401
[message] => Invalid username or password
[errors] => Array
(
)
)
Trace: #0 /var/www/ct-shuifung/apitest/profit.php(27): ProfitTest->makeRequest()
#1 /var/www/ct-shuifung/apitest/profit.php(177): ProfitTest->login()
#2 /var/www/ct-shuifung/apitest/profit.php(196): ProfitTest->runTests()
#3 {main}
Fatal error: Uncaught Exception: API Error (HTTP 401): Array
(
[status] => 401
[message] => Invalid username or password
[errors] => Array
(
)
)
in /var/www/ct-shuifung/apitest/profit.php:94
Stack trace:
#0 /var/www/ct-shuifung/apitest/profit.php(27): ProfitTest->makeRequest()
#1 /var/www/ct-shuifung/apitest/profit.php(177): ProfitTest->login()
#2 /var/www/ct-shuifung/apitest/profit.php(196): ProfitTest->runTests()
#3 {main}
thrown in /var/www/ct-shuifung/apitest/profit.php on line 94