Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • TRTH /
avatar image
REFINITIV
Question by Beera.Rajesh · Dec 22, 2020 at 06:49 AM · python apitickhistoryv2rth

Failed to establish a new connection: [Errno 111] Connection refused

I have a python component to make HTTP requests towards host='select.datascopeapi.extranet.reuters.biz', port=443.
But I get: Max retries exceeded with url: /RestApi/v1/Extractions/ExtractRaw (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98af0f7940>: Failed to establish a new connection: [Errno 111] Connection refused',))

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.

2 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by Beera.Rajesh · Dec 24, 2020 at 04:15 AM

@jirapongse.phuriphanvichai Noted.

I had suggested <https://community.developers.refinitiv.com/questions/6539/how-to-use-dssrest-api-examples-behind-a-proxy.html>; , client confirmed that the newly added CLI functionality of my component is corrupted. Connection towards your host is fine.

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.

avatar image
REFINITIV
Answer by jirapongse.phuriphanvichai · Dec 24, 2020 at 04:49 AM

@Beera.Rajesh

It looks like to be a network issue. I got the same error 111 when trying to connect to that host via IP Address (159.43.7.35).

requests.exceptions.ConnectionError: HTTPSConnectionPool(host='159.43.7.35', port=443): Max retries exceeded with url: /RestApi/v1/Authentication/RequestToken (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafc90b7d68>: Failed to establish a new connection: [Errno 111] Connection refused',))

The client can use the following curl command to verify the connection.

curl -v -H "Content-Type: application/json" -H "Prefer: respond-async" -X POST -d "{\"Credentials\": {\"Username\": \"ClientUsername\",\"Password\": \"ClientPassword\"}}" https://select.datascopeapi.extranet.reuters.biz/RestApi/v1/Authentication/RequestToken

If it requires a proxy to connect to the server, the client needs to configure a proxy in Python.

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 >
13 People are following this question.

Related Questions

How to construct the JSON requestBody for the request: GetValidContentFieldTypes

Which template type to use for retrieving Equity Spot Index for a date range or a day?

5 Decimal Places data for EUR/USD

Python Raw Data Extraction Request?

How to get available fields in TickHistoryRaw report template type?

  • 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