Can't connect with DSWS for Python 3.6

I'm attempting to connect to Datastream through DSWS for Python (getting a token). I use the code:
import DatastreamDSWS as DSWS
ds=DSWS.Datastream(username='ZXXXXXX',password='XXXXXX')
but I receive the following error message:
HTTPSConnectionPool(host='product.datastream.com', port=443): Max retries exceeded with url: /DSWSClient/V1/DSService.svc/rest/GetToken (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x0000024E16124908>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond',))
I have checked with the helpdesk that I do indeed have access to the service (and Datastream works in Excel), and my IT department insists a proxy is not needed. I have also tried both my own user credentials, and my employer's.
Answers
-
Hi
It looks like your ID is blocked (too many incorrect password attempts) - please contact the helpdesk to get this reset. https://my.refinitiv.com/content/mytr/en/signin.html
0 -
Thanks Paul - unfortunately this does not seem to be the answer, though. I just received a reset password, and tried it just now. The error message is still the same:
Traceback (most recent call last):
File "C:\Anaconda3\lib\site-packages\DatastreamDSWS\DS_Response.py", line 224, in _get_token
proxies={"http":self.proxy}, verify=requests.certs.where()).json()
File "C:\Anaconda3\lib\site-packages\requests\api.py", line 112, in post
return request('post', url, data=data, json=json, **kwargs)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='product.datastream.com', port=443): Max retries exceeded with url: /DSWSClient/V1/DSService.svc/rest/GetToken (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x0000024E164BB4A8>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond',))
0 -
Hi, have you just tried to install the new library, or was this working previously?
0 -
This is the first time I'm trying the new library.
0 -
My employer seems to think I should be using a common log-in ID and password for our firm (they call it the API ID and password) - but I have tried that as well, and I receive the very same error message.
0 -
Hi, There is no common login for access to DSWS. You can access through your Datastream Child ID, or your EIKON login credentials.
0 -
OK, thanks. I have also tried my own log-in credentials for Datastream (child ID beginning with Z), and with my Eikon log-in, but it doesn't work. The initial suggestion of resetting the password has now been tried as well - would you be able to provide some further assistance, please?
0 -
Hi,
My email is james.bright@refinitiv,com, telephone 020 75421954
0 -
This would need to be answered by the originator of the question.
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 687 Datastream
- 1.4K DSS
- 621 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 254 ETA
- 557 WebSocket API
- 38 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 276 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 669 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 193 TREP Infrastructure
- 229 TRKD
- 917 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛