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/test_uploadproof.php(30): UploadProofTest->makeRequest()
#1 /var/www/ct-shuifung/apitest/test_uploadproof.php(155): UploadProofTest->login()
#2 /var/www/ct-shuifung/apitest/test_uploadproof.php(194): UploadProofTest->testUploadPaymentProof()
#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/test_uploadproof.php:111
Stack trace:
#0 /var/www/ct-shuifung/apitest/test_uploadproof.php(30): UploadProofTest->makeRequest()
#1 /var/www/ct-shuifung/apitest/test_uploadproof.php(155): UploadProofTest->login()
#2 /var/www/ct-shuifung/apitest/test_uploadproof.php(194): UploadProofTest->testUploadPaymentProof()
#3 {main}
thrown in /var/www/ct-shuifung/apitest/test_uploadproof.php on line 111