Skip to main content
Question

ProxyError

  • May 22, 2025
  • 4 replies
  • 80 views

Forum|alt.badge.img

Hello,

I am running into an issue when trying to authenticate using OAuth2. I followed the instructions laid out here https://developer.box.com/en/guides/authentication/oauth2/with-sdk/ and have set a proxy. However, i continue to receive the below error. Has anyone else run into this issue? Any suggestions would be appreciated. 

 

ProxyError: HTTPSConnectionPool(host='api.box.com', port=443): Max retries exceeded with url: /oauth2/token (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 404 Not Found')))

4 replies

Forum|alt.badge.img

 hi what SDK are you using?


Forum|alt.badge.img

  I'm using boxsdk version 2.6.1


Forum|alt.badge.img

 

It may caused by the limitation in your network (your company's proxy server, etc)

You can pass the proxy url to boxsdk.

 

from boxsdk.config import Proxy
Proxy.URL = "your-company-proxy.com:"

 


Forum|alt.badge.img

 I would recommend opening a ticket on GitHub with the SDK team. I can give them a push as well, as they might know the answer better than I do. https://github.com/box/box-python-sdk