Tawfek Daghistani
12/10/2025, 8:52 AM{
"level": 50,
"time": "2025-12-10T08:42:59.577Z",
"label": "<http://permit.io|permit.io>",
"msg": "[500] Error in permit.check(f395cae4-f0d0-4584-bee8-af2894b99a2e, read, default/organization:*), err: {\"id\":\"f0fb33de6d2b433c8aba93e7379c4adb\",\"title\":\"The request could not be completed\",\"error_code\":\"UNEXPECTED_ERROR\",\"message\":\"policy evaluation is not available at this time, but we could not finish your request due to a technical issue on our end. Please try again.\\nIf the issue keeps happening, contact our support on Slack for further guidance.\"}"
}
{
"level": 50,
"time": "2025-12-10T08:42:59.577Z",
"label": "<http://permit.io|permit.io>",
"err": {
"type": "ce",
"message": "Permit SDK got error: \n Request failed with status code 500 \n\n and cannot connect to the PDP, please check your configuration and make sure the PDP is running at <https://cloudpdp.api.permit.io> and accepting requests. \n\n Read more about setting up the PDP at <https://docs.permit.io>",
"stack": "PermitConnectionError: Permit SDK got error: \n Request failed with status code 500 \n\n and cannot connect to the PDP, please check your configuration and make sure the PDP is running at <https://cloudpdp.api.permit.io> and accepting requests. \n\n Read more about setting up the PDP at <https://docs.permit.io>\n at <https://esm.sh/permitio@2.7.4/denonext/permitio.mjs:21:14>\n at eventLoopTick (ext:core/01_core.js:179:7)\n at async o.checkWithExceptions (<https://esm.sh/permitio@2.7.4/denonext/permitio.mjs:19:824>)\n at async o.check (<https://esm.sh/permitio@2.7.4/denonext/permitio.mjs:19:448>)\n at async bt.check (<https://esm.sh/permitio@2.7.4/denonext/permitio.mjs:27:73>)\n at async PermitIOService.canUserPerformActionOnResource (file:///home/app/dev/api/packages/permit.io/src/services/permit.io.service.ts:507:23)\n at async PermissionGuard.canActivate (file:///home/app/dev/api/packages/auth/src/guards/permission.guard.ts:67:24)\n at async GuardsConsumer.tryActivate (file:///home/app/dev/api/node_modules/.deno/@nestjs+core@11.1.8/node_modules/@nestjs/core/guards/guards-consumer.js:22:17)\n at async canActivateFn (file:///home/app/dev/api/node_modules/.deno/@nestjs+core@11.1.8/node_modules/@nestjs/core/router/router-execution-context.js:135:33)\n at async file:///home/app/dev/api/node_modules/.deno/@nestjs+core@11.1.8/node_modules/@nestjs/core/router/router-execution-context.js:42:31\n at async file:///home/app/dev/api/node_modules/.deno/@nestjs+core@11.1.8/node_modules/@nestjs/core/router/router-proxy.js:9:17",
"name": "PermitConnectionError"
},
"msg": "Permit SDK got error: \n Request failed with status code 500 \n\n and cannot connect to the PDP, please check your configuration and make sure the PDP is running at <https://cloudpdp.api.permit.io> and accepting requests. \n\n Read more about setting up the PDP at <https://docs.permit.io>"
}
any help ? or suggestion ?Ask Inkeep
12/10/2025, 8:52 AMAsk Inkeep
12/10/2025, 8:52 AM<https://cloudpdp.api.permit.io>) and receiving a 500 error with the message "policy evaluation is not available at this time."
A few things to note:
1. β*Cloud PDP Limitations*β: The cloud PDP is intended for quick experimentation. For production deployments, it's recommended to deploy the Docker Container PDP for better latency and availability. Additionally, the cloud PDP is β*not compatible with ABAC or ReBAC policies*β.
(1)
2. β*Consider switching to a local PDP container*β:
docker pull permitio/pdp-v2:latest
docker run -it -p 7766:7000 --env PDP_DEBUG=True --env PDP_API_KEY=<YOUR_API_KEY> permitio/pdp-v2:latest
Then update your SDK configuration to point to the local PDP:
const permit = new Permit({
pdp: "<http://localhost:7766>",
token: "[YOUR_API_KEY]",
}) ;
3. β*If you're using ABAC or ReBAC policies*β, the cloud PDP won't workβyou must use a container PDP.
*
To help our engineers investigate this further, could you please provide:
1. Which β*Workspace / Project / Environment*β you are using?
2. What β*calls*β are you performing (the SDK code or CURL) ?
3. Which β*PDP version*β you are running (in your case, cloud PDP) ?
4. Any additional β*logs*β from your application or PDP?
This wilAsk Inkeep
12/10/2025, 8:52 AMAlon Boshi
12/10/2025, 9:19 AMTawfek Daghistani
12/10/2025, 10:45 AM"permitio": "<https://esm.sh/permitio@2.7.4>",Tawfek Daghistani
12/10/2025, 11:54 AMhttps://permit-io.slack.com/files/U0A3HEKHPCG/F0A3J7VN2PJ/image.pngβΎ
Tawfek Daghistani
12/10/2025, 12:08 PMpdp.api.roleAssignments.list it does work with cloudpdp but doesn't work with localpdp
On the flip side, when I run pdp.check on cloudpdp it doesn't work but when I ran it with localpdp it does works π΅βπ«Alon Boshi
12/10/2025, 12:11 PMTawfek Daghistani
12/10/2025, 12:11 PMAlon Boshi
12/10/2025, 12:26 PMTawfek Daghistani
12/13/2025, 9:09 AMAlon Boshi
12/14/2025, 11:23 AMAlon Boshi
12/14/2025, 11:28 AM