<br />
<b>Fatal error</b>:  Uncaught PDOException: SQLSTATE[23502]: Not null violation: 7 ERROR:  null value in column &quot;token&quot; of relation &quot;api_token_access&quot; violates not-null constraint
DETAIL:  Failing row contains (2552, null, user_mgt/get_district_by_region_id.php, GET, f, 2026-08-24 01:57:06.646041, 2026-08-24 01:57:06.646041).
CONTEXT:  SQL statement &quot;INSERT INTO admin.api_token_access(
	 token, endpoint, method, allowed, created_at, updated_at)
	VALUES ( vr_token, vr_endpoint, vr_method,vr_is_allowed , CURRENT_TIMESTAMP, CURRENT_TIMESTAMP)&quot;
PL/pgSQL function admin.read_api_auth(text) line 35 at SQL statement in /var/www/html/models/auth.php:39
Stack trace:
#0 /var/www/html/models/auth.php(39): PDOStatement-&gt;execute()
#1 /var/www/html/api/user_mgt/get_district_by_region_id.php(39): auth-&gt;read_api_auth('{&quot;token&quot;:null,&quot;...')
#2 {main}
  thrown in <b>/var/www/html/models/auth.php</b> on line <b>39</b><br />
