API TYPE:
send_notification
STATUS CODE:
401
API PAYLOAD:
{"id_supplier":"1001","id_bangunan":"100012","kod_kes":"test","status":"New","tarikh":"2025-07-27","masa":"01:28:30","nama_bangunan":"YYS Bio Technology Berhad","alamat_bangunan":"58, Jln Diplomatik, Presint 15, 62000 Putrajaya","latitude":"2.93527","longitude":"101.69112","no_telefon":["0124547920",""],"nama_hubungi":["Guard House",""]}
API RESPONSE:
{
"success": false,
"title": "PSX\\Http\\Exception\\UnauthorizedException",
"message": "Invalid access token in /var/www/fusio/vendor/fusio/impl/src/Service/Security/TokenValidator.php on line 89",
"trace": "#0 /var/www/fusio/vendor/fusio/impl/src/Controller/Filter/Authentication.php(48): Fusio\\Impl\\Service\\Security\\TokenValidator->assertAuthorization()\n#1 /var/www/fusio/vendor/psx/http/src/Filter/FilterChain.php(86): Fusio\\Impl\\Controller\\Filter\\Authentication->handle()\n#2 /var/www/fusio/vendor/fusio/impl/src/Controller/Filter/Operation.php(88): PSX\\Http\\Filter\\FilterChain->handle()\n#3 /var/www/fusio/vendor/psx/http/src/Filter/FilterChain.php(86): Fusio\\Impl\\Controller\\Filter\\Operation->handle()\n#4 /var/www/fusio/vendor/fusio/impl/src/Controller/Filter/Firewall.php(56): PSX\\Http\\Filter\\FilterChain->handle()\n#5 /var/www/fusio/vendor/psx/http/src/Filter/FilterChain.php(86): Fusio\\Impl\\Controller\\Filter\\Firewall->handle()\n#6 /var/www/fusio/vendor/fusio/impl/src/Controller/Filter/Tenant.php(54): PSX\\Http\\Filter\\FilterChain->handle()\n#7 /var/www/fusio/vendor/psx/http/src/Filter/FilterChain.php(86): Fusio\\Impl\\Controller\\Filter\\Tenant->handle()\n#8 /var/www/fusio/vendor/psx/http/src/Filter/UserAgentEnforcer.php(43): PSX\\Http\\Filter\\FilterChain->handle()\n#9 /var/www/fusio/vendor/psx/http/src/Filter/FilterChain.php(86): PSX\\Http\\Filter\\UserAgentEnforcer->handle()\n#10 /var/www/fusio/vendor/psx/http/src/Filter/CORS.php(86): PSX\\Http\\Filter\\FilterChain->handle()\n#11 /var/www/fusio/vendor/psx/http/src/Filter/FilterChain.php(86): PSX\\Http\\Filter\\CORS->handle()\n#12 /var/www/fusio/vendor/psx/framework/src/Loader/Loader.php(97): PSX\\Http\\Filter\\FilterChain->handle()\n#13 /var/www/fusio/vendor/psx/framework/src/Loader/Loader.php(72): PSX\\Framework\\Loader\\Loader->execute()\n#14 /var/www/fusio/vendor/psx/framework/src/Dispatch/Dispatch.php(86): PSX\\Framework\\Loader\\Loader->load()\n#15 /var/www/fusio/vendor/psx/engine/src/WebServer/Engine.php(51): PSX\\Framework\\Dispatch\\Dispatch->route()\n#16 /var/www/fusio/vendor/psx/framework/src/Environment/Environment.php(49): PSX\\Engine\\WebServer\\Engine->serve()\n#17 /var/www/fusio/public/index.php(29): PSX\\Framework\\Environment\\Environment->serve()\n#18 {main}",
"context": "85 throw new UnauthorizedException($e->getMessage(), 'Bearer', $params);\n86 }\n87 \n88 if (!$token instanceof Model\\Token) {\n<b>89 throw new UnauthorizedException('Invalid access token', 'Bearer', $params);\n</b>90 }\n91 \n92 $appId = $token->getAppId();\n93 if ($appId !== null && $app = $this->appRepository->get($appId)) {\n"
}
RESPONSE RECEIVE TIME:
2025-07-26 | 23:28