Tathagata Guha Ray
05/08/2026, 6:25 AMnodeos-api-prod | {"level":50,"time":"2026-05-08T03:54:21.406Z","label":"<http://Permit.io|Permit.io>","msg":"[502] Error in permit.check(68e64179-0082-4665-93a3-0cf9489a5780, read, default/direct_message_threads:*), err: {\"detail\":\"Failed to send request to OPA\"}"}
nodeos-api-prod | {"level":50,"time":"2026-05-08T03:54:21.406Z","label":"<http://Permit.io|Permit.io>","msg":"[502] Error in permit.check(68e64179-0082-4665-93a3-0cf9489a5780, delete, default/direct_message_posts:*), err: {\"detail\":\"Failed to send request to OPA\"}"}
nodeos-api-prod | {"level":50,"time":"2026-05-08T03:54:21.407Z","label":"<http://Permit.io|Permit.io>","msg":"[502] Error in permit.check(68e64179-0082-4665-93a3-0cf9489a5780, read, default/direct_message_posts:*), err: {\"detail\":\"Failed to send request to OPA\"}"}
nodeos-api-prod | {"level":50,"time":"2026-05-08T03:54:21.407Z","label":"<http://Permit.io|Permit.io>","msg":"[502] Error in permit.check(68e64179-0082-4665-93a3-0cf9489a5780, update, default/direct_message_posts:*), err: {\"detail\":\"Failed to send request to OPA\"}"}
nodeos-api-prod | {"level":50,"time":"2026-05-08T03:54:21.407Z","label":"<http://Permit.io|Permit.io>","msg":"[502] Error in permit.check(68e64179-0082-4665-93a3-0cf9489a5780, create, default/journals:*), err: {\"detail\":\"Failed to send request to OPA\"}"}
nodeos-api-prod | {"level":50,"time":"2026-05-08T03:54:21.408Z","label":"<http://Permit.io|Permit.io>","msg":"[502] Error in permit.check(68e64179-0082-4665-93a3-0cf9489a5780, update, default/journals:*), err: {\"detail\":\"Failed to send request to OPA\"}"}
nodeos-api-prod | {"level":50,"time":"2026-05-08T03:54:21.408Z","label":"<http://Permit.io|Permit.io>","msg":"[502] Error in permit.check(68e64179-0082-4665-93a3-0cf9489a5780, read, default/journals:*), err: {\"detail\":\"Failed to send request to OPA\"}"}Ask Inkeep
05/08/2026, 6:25 AMAsk Inkeep
05/08/2026, 6:25 AMPDP_OPA_CLIENT_QUERY_TIMEOUT setting controls the timeout for querying OPA. (2) In version 0.9.0 and above, the default is 1 second, and 0 means 0 seconds (not unlimited) .
You might also want to verify the PDP_OPA_CLIENT_FAILURE_THRESHOLD (default 0.1) and PDP_OPA_CLIENT_FAILURE_THRESHOLD_INTERVAL (default 60 seconds) settings, which determine when failed requests to OPA trigger a failure.Ask Inkeep
05/08/2026, 6:25 AMTathagata Guha Ray
05/08/2026, 6:26 AMnodeos-api-prod | 2026-05-08 06:24:42 [warn] [nodeos-backend]: Permission check failed in batch fallback {"version":"1.0.0","permission":"journals:create","error":"Permit SDK got error: \n Request failed with status code 502 \n\n and cannot connect to the PDP, please check your configuration and make sure the PDP is running at <http://permit-pdp:7000> and accepting requests. \n\n Read more about setting up the PDP at <https://docs.permit.io>"}
nodeos-api-prod | 2026-05-08 06:24:42 [warn] [nodeos-backend]: Permission check failed in batch fallback {"version":"1.0.0","permission":"journals:read","error":"Permit SDK got error: \n Request failed with status code 502 \n\n and cannot connect to the PDP, please check your configuration and make sure the PDP is running at <http://permit-pdp:7000> and accepting requests. \n\n Read more about setting up the PDP at <https://docs.permit.io>"}
nodeos-api-prod | 2026-05-08 06:24:42 [warn] [nodeos-backend]: Permission check failed in batch fallback {"version":"1.0.0","permission":"journals:update","error":"Permit SDK got error: \n Request failed with status code 502 \n\n and cannot connect to the PDP, please check your configuration and make sure the PDP is running at <http://permit-pdp:7000> and accepting requests. \n\n Read more about setting up the PDP at <https://docs.permit.io>"}Or Weis
05/08/2026, 6:44 AMAsk Inkeep
05/08/2026, 6:44 AMAsk Inkeep
05/08/2026, 6:44 AMPDP_CACHE_STORE - Set to memory for single instance or redis for distributed caching (1)
• PDP_CACHE_TTL_SECONDS - Configure the cache time-to-live
*3. Scale horizontally* (2)
Deploy multiple PDP instances behind a load balancer to distribute the authorization query load. (3) (2)
For Kubernetes deployments, you can use the PDP Helm chart to create a deployment with multiple replicas. (2)
*4. Optimize for production*
Disable debug logging to enhance performance:
--env PDP_DEBUG=False
*To help investigate further, please provide:*
1. Which Workspace / Project / Env you are using
2. What calls are you performing (as SDK code or CURL)
3. Which PDP version you are running (you mentioned v0.9.9)
4. Relevant logs from your PDP container showing resource usage and OPA health statusAsk Inkeep
05/08/2026, 6:45 AM