Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NO_PROXY env var not working #1062

Open
24berickson opened this issue Jan 21, 2025 · 0 comments
Open

NO_PROXY env var not working #1062

24berickson opened this issue Jan 21, 2025 · 0 comments

Comments

@24berickson
Copy link

Bug description

NO_PROXY environment variable is not respected by Prisma Client Python when connecting to query engine. Even with NO_PROXY set correctly for localhost/127.0.0.1, connections are still being routed through proxy, resulting in 403 Access Denied errors.

How to reproduce

  1. Set up Prisma Client Python in an environment behind a corporate proxy
  2. Set NO_PROXY environment variable:
os.environ["NO_PROXY"] = "localhost,127.0.0.1"
  1. Try to connect to Prisma query engine:
async with Prisma(http={"trust_env": True}) as prisma_client:
    # Any query attempt results in proxy intercepting local connection
  1. Error received 403 when trying to access http://localhost:60367/status as it was being routed to proxy.

Expected behavior

  1. Prisma Client Python should respect NO_PROXY environment variable
  2. Local connections to query engine should bypass proxy when NO_PROXY is set correctly
  3. Similar behavior to other Prisma clients regarding proxy handling (Node.js working as expected I believe)

Environment & setup

  • OS: Mac OS
  • Database: PostgreSQL
  • Python version: 3.11
  • Prisma version: 0.15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant