Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Refinitiv Data Platform /
  • Refinitiv Data Platform Libraries /
avatar image
REFINITIV
Question by jeff.kenyon · Sep 10, 2020 at 07:30 PM · python apirdpproxyrdp authentication

Python RDP API does not use proxy server when connecting

(Repeating this as a new question, after posting it as a continuation of a previous thread and seeing no responses. Maybe with a more accurate title...)

I have developed a working script using the Python RDP API. It fails to work in an environment that requires the use of a proxy server to access the Internet. The script is unable to reach the external (AWS) RDP server.

The issue is not in Python. In trying to reach a random external URL from within Python (e.g., https://www.google.com/), I'm successful with the environment HTTP_PROXY and HTTPS_PROXY variables set. If I explicitly unset them in the Python session, I get a failed connection, as I would expect. If I explicitly set them in the Python session, I can successfully reach the URL.

                
  1. import os
  2. os.environ["HTTP_PROXY"] = "webproxy.pln.corp.services:80"
  3. os.environ["HTTPS_PROXY"] = "webproxy.pln.corp.services:80"

Regardless of whether the proxy is set, in the environment and/or in Python, the RDP API cannot connect. This seems (to me) to indicate that the issue is that RDP is ignoring the proxy server variable setting: RDP's open_platform_session tries the connection without the proxy, and fails.

Is there some RDP system setting or configuration that would force the connection through the proxy server? RDP is clearly not taking the environment setting into account.

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Reply

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by Gurpreet · Sep 10, 2020 at 08:08 PM

There is no uniform mechanism for specifying the proxy configuration in Python. It is up to each module, if it wants to support proxy and how that configuration may be passed. Most common one's like requests support this in the API call, and also read it from system environment variables like HTTP_PROXY, HTTPS_PROXY.

The RDP library is using requests_async for all its I/O work. From what I can see from this issue, this module does not support proxy settings at all.

Either way, this is a feature that client's would request from the library.

@Olivier DAVANT, @pierre.faurel, Can you please add support for proxy configuration in future releases.

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
9 People are following this question.

Related Questions

RDP Python API performance

How do I retrieve index constituents in RDP/Python

RDP in Python not connecting despite valid App Key

RDP authentication error

Python RDP StreamingPrices returns no data

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges