Jazmine Reyes
03/24/2026, 1:19 AMPermit.getUserPermissions() got an unexpected status code: 502, please check your SDK init and make sure the PDP sidecar is configured correctly.\nRead more about setting up the PDP at <https://docs.permit.io/sdk/python/quickstart-python/#2-setup-your-pdp-policy-decision-point-container>Ask Inkeep
03/24/2026, 1:19 AMpermit support automation2
03/24/2026, 1:19 AMAsk Inkeep
03/24/2026, 1:19 AM<https://cloudpdp.api.permit.io> (1) (2) .
Here are some troubleshooting steps:
*1. Verify your SDK initialization*
Ensure you're pointing to the Cloud PDP correctly:
from permit import Permit
permit = Permit(
token="[your-api-key]",
pdp="<https://cloudpdp.api.permit.io>",
)
(3)
*2. Check for known issues*
There's a known issue where the Python SDK uses lowercase bearer in the Authorization header, but Cloud PDP requires uppercase Bearer per RFC 6750 (4) . This can cause 401 errors, though you're seeing 502.
*3. Verify API key validity*
Ensure your API key is correct and hasn't been rotated or revoked (3) .
*4. Check Cloud PDP status*
Since this is affecting all your environments, there may be a temporary service issue with the managed Cloud PDP.
To help our engineers investigate further, please provide:
1. Which Workspace / Project / Env you are using
2. What calls you are performing (as SDK code or CURL)
3. Which PDP version you are running (in your case, Cloud PDP)
4. Any relevant logs from your application when the error occurs
If the issue persists, you might consider deploying an Edge PDP (self-hosted) as an alternative, which runs in your own infrastructure and can provide betterAsk Inkeep
03/24/2026, 1:19 AMJazmine Reyes
03/24/2026, 1:32 AM<http://consoleconnect.com|consoleconnect.com>. This project currently has 3 environments (Development, Uat, Production). Currently these environments are having this issue when connecting to the Cloud PDP.
2. We are calling the get_user_permissions and the check endpoints using the python sdk. Actually anything we try to call is returning the 50 error
3. Cloud PDP
4. Logs received: Permit.getUserPermissions() got an unexpected status code: 502, please check your SDK init and make sure the PDP sidecar is configured correctly.\nRead more about setting up the PDP at https://docs.permit.io/sdk/python/quickstart-python/#2-setup-your-pdp-policy-decision-point-containerOr Weis
03/24/2026, 6:11 AMJazmine Reyes
03/25/2026, 12:45 AMpermit support automation2
03/25/2026, 12:45 AM