Unable to run sample API from Windows

I am trying to run the sample code 'market_price_edpgw_service_discovery.py'. I have set the following variables:
user = 'MY_MACHINE_ID'
password = 'MY_PASSWORD'
I have also tried setting
client_secret = 'MY_PASSWORD'
However, I am receiving the below response:
Sending authentication request with password to https://api.edp.thomsonreuters.com:443/auth/oauth2/beta1/token ...
EDP-GW authentication result failure: 400 Bad Request
Text: {"error":"access_denied" ,"error_description":"Invalid username or password." }
Best Answer
-
Here is the EDP endpoints which are used for streaming data:
*.pricing.streaming.edp.thomsonreuters.com
It might help to setup a debugging proxy server like Fiddler to capture your raw HTTP request/response and compare. See the instructions here.
0
Answers
-
Hi @graeme.taylor Your machine ID is usually alpha-numeric containing - and starts with GE. If that is what you are using, then please raise this issue with your account manager to get your credentials verified.
The client_secret variable is not used, and has to be blank.
0 -
Hi @Gurpreet,
Yes, I am using my correct machine ID and password. I replaced them in snippet above due to public forum. Credentials have already been verified.
The response is identical with or without client_secret being set.
Thanks,`
Graeme
0 -
It is obviously an issue with credentials, since the python sample works fine and is used by many of our clients. Unfortunately, I don't have any means of checking your permissions. I would recommend that you contact the account manager again.
0 -
Hello,
The credentials themselves are fine - they have been tested with direct connection and worked. The cause is likely because the connection needs to go through proxy and that is when the example stops working.
Is there a documentation or example which shows how to handle proxy in Python?
0 -
The credentials have been tested by Ziemowit from Refinitiv and are ok. The main difference is I am running behind a proxy so have amended the request to pass in Proxy information.
0 -
@Ziemowit Kupracz @graeme.taylor The error message that you have posted is coming from the EDP servers -- it demonstrates that the python sample is able to reach and successfully interact with EDP.
Here is the raw HTTP response I receive when using an invalid password:
HTTP/1.1 400 Bad Request
Date: Tue, 17 Sep 2019 18:14:14 GMT
Content-Type: application/json
Content-Length: 81
Connection: keep-alive
X-Amzn-Trace-Id: Root=1-5d812276-*****308bfcc879a
X-Served-By: region=us-east-1; cid=ddff84a6-****-76f03c517b90
X-Tr-Requestid: 5ed3******1602bb1
{"error":"access_denied" ,"error_description":"Invalid username or password." }0 -
It's possible that our proxy is stripping out the credentials. Can you give me a complete list of endpoints so I can ensure they are whitelisted from my end please?
0 -
@Ziemowit Kupracz, @graeme.taylor
Did the problem still occur in your environment? Did you have a chance to setup a debugging proxy server to test your request as suggested by Gurpreet?
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
- 684 Datastream
- 1.4K DSS
- 615 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
- 249 ETA
- 554 WebSocket API
- 37 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
- 275 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
- 643 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
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 192 TREP Infrastructure
- 228 TRKD
- 915 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
- 46 中文论坛