I am making up my first custom api call to make a report based on some sql but i can't get past this error
i've got ssl enabled and it doesn't even seem to hit the service
i have created an api user, and Postman is giving me a 500 so it seems to work on auth
but i feel i have missed something somewhere to make this work
Code:
CRITICAL: (22007) SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect string value: '\xE6\xABz\xBD<w...' for column `espo`.`auth_log_record`.`username` at row 1 :: GET /allWR/getByParentAccount :: /var/www/html/application/Espo/ORM/Executor/DefaultSqlExecutor.php(77)
PHP Code:
<?php
namespace Espo\Custom\Services;
use Espo\Core\Services\Base;
class allWR extends \Espo\Core\Templates\Services\BasePlus
{
public function getByParentAccount($parentAccountId)
{
// Safe placeholder
return [
'list' => [
['name' => 'Test Work Record']
],
'count' => 1
];
}
}
but i feel i have missed something somewhere to make this work
Comment