start log [11-Jul-2026 17:29:21 UTC] OpenEMR Error - api site error, so forced exit siteId: , pathInfo: /api/auth [11-Jul-2026 17:29:21 UTC] OpenEMR.ERROR: ExceptionHandlerListener exception OpenEMR Error: api site error, so forced exit. Please ensure that the site is set up correctly in the OpenEMR configuration. {"trace":"#0 /var/www/localhost/htdocs/a/openemr/vendor/symfony/event-dispatcher/EventDispatcher.php(206): OpenEMR\\RestControllers\\Subscriber\\SiteSetupListener->onKernelRequest() #1 /var/www/localhost/htdocs/a/openemr/vendor/symfony/event-dispatcher/EventDispatcher.php(56): Symfony\\Component\\EventDispatcher\\EventDispatcher->callListeners() #2 /var/www/localhost/htdocs/a/openemr/vendor/symfony/http-kernel/HttpKernel.php(159): Symfony\\Component\\EventDispatcher\\EventDispatcher->dispatch() #3 /var/www/localhost/htdocs/a/openemr/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw() #4 /var/www/localhost/htdocs/a/openemr/src/RestControllers/ApiApplication.php(123): Symfony\\Component\\HttpKernel\\HttpKernel->handle() #5 /var/www/localhost/htdocs/a/openemr/apis/dispatch.php(30): OpenEMR\\RestControllers\\ApiApplication->run() #6 {main}"} [] [11-Jul-2026 17:29:21 UTC] OpenEMR.ERROR: TelemetryListener telemetry error {"exception":"[object] (Symfony\\Component\\HttpFoundation\\Exception\\SessionNotFoundException(code: 0): Session has not been set. at /var/www/localhost/htdocs/a/openemr/vendor/symfony/http-foundation/Request.php:784) [stacktrace] #0 /var/www/localhost/htdocs/a/openemr/src/RestControllers/Subscriber/TelemetryListener.php(24): Symfony\\Component\\HttpFoundation\\Request->getSession() #1 /var/www/localhost/htdocs/a/openemr/vendor/symfony/event-dispatcher/EventDispatcher.php(206): OpenEMR\\RestControllers\\Subscriber\\TelemetryListener->onRequestTerminated() #2 /var/www/localhost/htdocs/a/openemr/vendor/symfony/event-dispatcher/EventDispatcher.php(56): Symfony\\Component\\EventDispatcher\\EventDispatcher->callListeners() #3 /var/www/localhost/htdocs/a/openemr/vendor/symfony/http-kernel/HttpKernel.php(114): Symfony\\Component\\EventDispatcher\\EventDispatcher->dispatch() #4 /var/www/localhost/htdocs/a/openemr/src/RestControllers/ApiApplication.php(133): Symfony\\Component\\HttpKernel\\HttpKernel->terminate() #5 /var/www/localhost/htdocs/a/openemr/apis/dispatch.php(30): OpenEMR\\RestControllers\\ApiApplication->run() #6 {main} "} [] [11-Jul-2026 17:29:21 UTC] Session has not been set. [11-Jul-2026 17:29:21 UTC] #0 /var/www/localhost/htdocs/a/openemr/src/RestControllers/Subscriber/ApiResponseLoggerListener.php(46): Symfony\Component\HttpFoundation\Request->getSession() #1 /var/www/localhost/htdocs/a/openemr/vendor/symfony/event-dispatcher/EventDispatcher.php(206): OpenEMR\RestControllers\Subscriber\ApiResponseLoggerListener->onRequestTerminated() #2 /var/www/localhost/htdocs/a/openemr/vendor/symfony/event-dispatcher/EventDispatcher.php(56): Symfony\Component\EventDispatcher\EventDispatcher->callListeners() #3 /var/www/localhost/htdocs/a/openemr/vendor/symfony/http-kernel/HttpKernel.php(114): Symfony\Component\EventDispatcher\EventDispatcher->dispatch() #4 /var/www/localhost/htdocs/a/openemr/src/RestControllers/ApiApplication.php(133): Symfony\Component\HttpKernel\HttpKernel->terminate() #5 /var/www/localhost/htdocs/a/openemr/apis/dispatch.php(30): OpenEMR\RestControllers\ApiApplication->run() #6 {main} [11-Jul-2026 20:20:35 UTC] PHP Warning: Undefined array key "grant_type" in /var/www/localhost/htdocs/openemr/src/RestControllers/AuthorizationController.php on line 1364 [11-Jul-2026 20:20:35 UTC] OpenEMR.ERROR: ExceptionHandlerListener exception Cannot assign null to property OpenEMR\RestControllers\AuthorizationController::$grantType of type string {"trace":"#0 /var/www/localhost/htdocs/openemr/src/RestControllers/Subscriber/OAuth2AuthorizationListener.php(126): OpenEMR\\RestControllers\\AuthorizationController->oauthAuthorizeToken() #1 /var/www/localhost/htdocs/openemr/src/RestControllers/Subscriber/OAuth2AuthorizationListener.php(81): OpenEMR\\RestControllers\\Subscriber\\OAuth2AuthorizationListener->authorizeRequest() #2 /var/www/localhost/htdocs/openemr/vendor/symfony/event-dispatcher/EventDispatcher.php(206): OpenEMR\\RestControllers\\Subscriber\\OAuth2AuthorizationListener->onKernelRequest() #3 /var/www/localhost/htdocs/openemr/vendor/symfony/event-dispatcher/EventDispatcher.php(56): Symfony\\Component\\EventDispatcher\\EventDispatcher->callListeners() #4 /var/www/localhost/htdocs/openemr/vendor/symfony/http-kernel/HttpKernel.php(159): Symfony\\Component\\EventDispatcher\\EventDispatcher->dispatch() #5 /var/www/localhost/htdocs/openemr/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw() #6 /var/www/localhost/htdocs/openemr/src/RestControllers/ApiApplication.php(123): Symfony\\Component\\HttpKernel\\HttpKernel->handle() #7 /var/www/localhost/htdocs/openemr/oauth2/authorize.php(26): OpenEMR\\RestControllers\\ApiApplication->run() #8 {main}"} [] [11-Jul-2026 20:31:43 UTC] PHP Warning: Undefined array key "content-type" in /var/www/localhost/htdocs/openemr/src/RestControllers/AuthorizationController.php on line 259 [11-Jul-2026 20:31:43 UTC] OpenEMR.ERROR: Exception occurred Unexpected content type {"trace":"#0 /var/www/localhost/htdocs/openemr/src/RestControllers/Subscriber/OAuth2AuthorizationListener.php(169): OpenEMR\\RestControllers\\AuthorizationController->clientRegistration() #1 /var/www/localhost/htdocs/openemr/src/RestControllers/Subscriber/OAuth2AuthorizationListener.php(81): OpenEMR\\RestControllers\\Subscriber\\OAuth2AuthorizationListener->authorizeRequest() #2 /var/www/localhost/htdocs/openemr/vendor/symfony/event-dispatcher/EventDispatcher.php(206): OpenEMR\\RestControllers\\Subscriber\\OAuth2AuthorizationListener->onKernelRequest() #3 /var/www/localhost/htdocs/openemr/vendor/symfony/event-dispatcher/EventDispatcher.php(56): Symfony\\Component\\EventDispatcher\\EventDispatcher->callListeners() #4 /var/www/localhost/htdocs/openemr/vendor/symfony/http-kernel/HttpKernel.php(159): Symfony\\Component\\EventDispatcher\\EventDispatcher->dispatch() #5 /var/www/localhost/htdocs/openemr/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw() #6 /var/www/localhost/htdocs/openemr/src/RestControllers/ApiApplication.php(123): Symfony\\Component\\HttpKernel\\HttpKernel->handle() #7 /var/www/localhost/htdocs/openemr/oauth2/authorize.php(26): OpenEMR\\RestControllers\\ApiApplication->run() #8 {main}"} [] [11-Jul-2026 20:39:04 UTC] PHP Warning: Undefined array key "grant_type" in /var/www/localhost/htdocs/openemr/src/RestControllers/AuthorizationController.php on line 1364 [11-Jul-2026 20:39:04 UTC] OpenEMR.ERROR: ExceptionHandlerListener exception Cannot assign null to property OpenEMR\RestControllers\AuthorizationController::$grantType of type string {"trace":"#0 /var/www/localhost/htdocs/openemr/src/RestControllers/Subscriber/OAuth2AuthorizationListener.php(126): OpenEMR\\RestControllers\\AuthorizationController->oauthAuthorizeToken() #1 /var/www/localhost/htdocs/openemr/src/RestControllers/Subscriber/OAuth2AuthorizationListener.php(81): OpenEMR\\RestControllers\\Subscriber\\OAuth2AuthorizationListener->authorizeRequest() #2 /var/www/localhost/htdocs/openemr/vendor/symfony/event-dispatcher/EventDispatcher.php(206): OpenEMR\\RestControllers\\Subscriber\\OAuth2AuthorizationListener->onKernelRequest() #3 /var/www/localhost/htdocs/openemr/vendor/symfony/event-dispatcher/EventDispatcher.php(56): Symfony\\Component\\EventDispatcher\\EventDispatcher->callListeners() #4 /var/www/localhost/htdocs/openemr/vendor/symfony/http-kernel/HttpKernel.php(159): Symfony\\Component\\EventDispatcher\\EventDispatcher->dispatch() #5 /var/www/localhost/htdocs/openemr/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw() #6 /var/www/localhost/htdocs/openemr/src/RestControllers/ApiApplication.php(123): Symfony\\Component\\HttpKernel\\HttpKernel->handle() #7 /var/www/localhost/htdocs/openemr/oauth2/authorize.php(26): OpenEMR\\RestControllers\\ApiApplication->run() #8 {main}"} [] [11-Jul-2026 20:45:53 UTC] PHP Warning: Undefined array key "content-type" in /var/www/localhost/htdocs/openemr/src/RestControllers/AuthorizationController.php on line 259 [11-Jul-2026 20:45:53 UTC] OpenEMR.ERROR: Exception occurred Unexpected content type {"trace":"#0 /var/www/localhost/htdocs/openemr/src/RestControllers/Subscriber/OAuth2AuthorizationListener.php(169): OpenEMR\\RestControllers\\AuthorizationController->clientRegistration() #1 /var/www/localhost/htdocs/openemr/src/RestControllers/Subscriber/OAuth2AuthorizationListener.php(81): OpenEMR\\RestControllers\\Subscriber\\OAuth2AuthorizationListener->authorizeRequest() #2 /var/www/localhost/htdocs/openemr/vendor/symfony/event-dispatcher/EventDispatcher.php(206): OpenEMR\\RestControllers\\Subscriber\\OAuth2AuthorizationListener->onKernelRequest() #3 /var/www/localhost/htdocs/openemr/vendor/symfony/event-dispatcher/EventDispatcher.php(56): Symfony\\Component\\EventDispatcher\\EventDispatcher->callListeners() #4 /var/www/localhost/htdocs/openemr/vendor/symfony/http-kernel/HttpKernel.php(159): Symfony\\Component\\EventDispatcher\\EventDispatcher->dispatch() #5 /var/www/localhost/htdocs/openemr/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw() #6 /var/www/localhost/htdocs/openemr/src/RestControllers/ApiApplication.php(123): Symfony\\Component\\HttpKernel\\HttpKernel->handle() #7 /var/www/localhost/htdocs/openemr/oauth2/authorize.php(26): OpenEMR\\RestControllers\\ApiApplication->run() #8 {main}"} [] [11-Jul-2026 21:40:22 UTC] DEBUG: throttling down for script number 2 for 400 milliseconds [11-Jul-2026 21:40:23 UTC] DEBUG: throttling down for script number 3 for 100 milliseconds [11-Jul-2026 21:40:24 UTC] DEBUG: throttling down for script number 5 for 500 milliseconds [11-Jul-2026 21:40:24 UTC] DEBUG: throttling down for script number 6 for 1200 milliseconds [11-Jul-2026 21:40:24 UTC] DEBUG: throttling down for script number 7 for 1900 milliseconds [11-Jul-2026 21:40:24 UTC] DEBUG: throttling down for script number 8 for 2600 milliseconds [11-Jul-2026 21:40:27 UTC] DEBUG: throttling down for script number 9 for 300 milliseconds [11-Jul-2026 21:40:27 UTC] DEBUG: throttling down for script number 10 for 1000 milliseconds [11-Jul-2026 21:50:07 UTC] DEBUG: throttling down for script number 2 for 1400 milliseconds [11-Jul-2026 21:50:10 UTC] DEBUG: throttling down for script number 5 for 500 milliseconds [11-Jul-2026 21:50:10 UTC] DEBUG: throttling down for script number 5 for 500 milliseconds [11-Jul-2026 21:50:11 UTC] DEBUG: throttling down for script number 6 for 200 milliseconds [11-Jul-2026 21:50:11 UTC] DEBUG: throttling down for script number 7 for 900 milliseconds [11-Jul-2026 21:50:12 UTC] DEBUG: throttling down for script number 8 for 600 milliseconds [11-Jul-2026 21:50:12 UTC] DEBUG: throttling down for script number 2 for 1400 milliseconds [11-Jul-2026 21:50:16 UTC] DEBUG: throttling down for script number 7 for 900 milliseconds [11-Jul-2026 21:50:16 UTC] DEBUG: throttling down for script number 7 for 900 milliseconds [11-Jul-2026 21:50:16 UTC] DEBUG: throttling down for script number 8 for 1600 milliseconds [11-Jul-2026 21:50:34 UTC] DEBUG: throttling down for script number 2 for 400 milliseconds [11-Jul-2026 21:50:35 UTC] DEBUG: throttling down for script number 3 for 100 milliseconds [11-Jul-2026 21:50:36 UTC] DEBUG: throttling down for script number 5 for 500 milliseconds [11-Jul-2026 21:50:36 UTC] DEBUG: throttling down for script number 5 for 500 milliseconds [11-Jul-2026 21:50:36 UTC] DEBUG: throttling down for script number 7 for 1900 milliseconds [11-Jul-2026 21:50:36 UTC] DEBUG: throttling down for script number 7 for 1900 milliseconds [11-Jul-2026 21:50:37 UTC] DEBUG: throttling down for script number 8 for 1600 milliseconds [11-Jul-2026 21:50:39 UTC] DEBUG: throttling down for script number 9 for 300 milliseconds