Hello :wave: , I'm having this weird error ```{"l...
# permit-saas
t
Hello πŸ‘‹ , I'm having this weird error
Copy code
{
  "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.\"}"
}
Copy code
{
  "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 ?
a
Hi @Tawfek Daghistani, I'm an AI assistant for Permit.io. I'll analyze available sources and get back to you shortly.
* Based on your error, you're using the ​*Cloud PDP*​ (
<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*​:
Copy code
docker pull permitio/pdp-v2:latest
Copy code
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:
Copy code
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 wil
To learn more, see the sources I considered: [[1] Running a demo](https://docs.permit.io/overview/connecting-your-app)
a
Hi! @Tawfek Daghistani Thanks for sharing the logs. To help us narrow this down, could you please share the exact SDK call you're making when the error occurs?
t
Hi @Alon Boshi my deno.json has
"permitio": "<https://esm.sh/permitio@2.7.4>",
I've ran a local pdp , not the check works but getting full user pmission , showing this error btw I've tried to update to v2.7.5 and I still got this error:

https://permit-io.slack.com/files/U0A3HEKHPCG/F0A3J7VN2PJ/image.pngβ–Ύ

@Alon Boshi interestingly when I need to
pdp.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 πŸ˜΅β€πŸ’«
a
Thanks for your findings! I'm looping in the team and will circle back to you soon
t
sorry to bother but meanwhile my team is blocked , can we speed things up ?
a
Better for you now to use the local PDP, as ABAC/ReBAC via cloud PDP isn’t available for your setup yet.
t
Is there any updates on this issue ? FYI im only running simple check permission No abac/rebac queries
a
Hey Tawfek, Based on your logs, this is very likely due to a misconfiguration in the SDK, probably because ABAC is not enabled. If you are using resource sets or user sets, those require ABAC to filter permissions correctly β€” even for what looks like simple checks. Please share a snippet of how you’re creating the Permit client, and let us know if you have defined anything that could involve ABAC, so we can verify your configuration. For reference, here are the relevant guides: β€’ `permit.check`: https://docs.permit.io/how-to/enforce-permissions/check β€’ Enabling ABAC for user permissions: https://docs.permit.io/how-to/enforce-permissions/user-permissions#enabling-abac-in-user-permissions
Important note: ABAC and ReBAC are not supported on the Cloud PDP, so for any policies that require ABAC or ReBAC, you need to use a Local PDP.