Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Elektron /
  • WebSocket API /

For a deeper look into our Elektron API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

avatar image
Question by jeff.zimniewicz · Aug 15, 2019 at 10:51 AM · treprdp-apiwebsocketsrrtosample-codeerror-502

Connection Samples are throwing 502 Bad Gateway error (CSharp and Python)

I just setup my refinitiv and machine accounts via the welcome emails today. I'm trying to run the sample mentioned in the welcome emails (market_price_edpgw_service_discovery.py) and I'm getting the following:

C:\temp\Examples\EDP\python>python market_price_edpgw_service_discovery.py --user <snip> --password <snip>

Sending authentication request with password to https://api.edp.thomsonreuters.com:443/auth/oauth2/beta1/token ... EDP-GW authentication result failure: 502 Bad Gateway Text: {"error":"server_error" }

I'm getting this error from multiple different machines and also when I try and run a similar C# sample.

Any suggestions? I tried putting in dummy username/password and got the same error so I don't believe this is related to my account.

Thanks

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
Best Answer
Answer by jeff.zimniewicz · Aug 15, 2019 at 10:54 AM

nevermind - I was using my refinitiv username / password instead of my machine ID.

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 Gurpreet · Aug 15, 2019 at 11:02 AM

Hi @jeff.zimniewicz, I just tried the same sample and it is working, so I can assume the issue is either your credentials or network connection to EDP servers.

Are you behind a proxy server?

Sending authentication request with password to  https://api.edp.thomsonreuters.com:443/auth/oauth2/beta1/token ...
EDP-GW Authentication succeeded. RECEIVED:
{
"access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IkhQS2pEYUhiZmpLOVRfRHUxeGFJX1JaVmZfRjNDcHlEc0dTcDV5NWxCYV
EifQ.eyJkYXRhIjoie1wiY2lwaGVydGV4dFwiOlwiNGVEbnhralBxZlYyZkxIU2tXa2FZdU53ZXhoYVpFSFA1aVgyTHBVcDdnTUwtbHI1eXM5X3VvQWwtTFl....
Comment
jeff.zimniewicz

People who like this

1 Show 1 · 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
jeff.zimniewicz · Aug 15, 2019 at 11:03 AM 0
Share

It was a credential issue. I was using the wrong username/password. Thanks!

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

Related Questions

What's the difference between WebSocket API and TRKD Streaming API that's expected to be available also soon? (from WebSocket API Webinar Nov 29)

How to make side menu work as accordion when click category display sub categories?

Refresh Token URL?

stream stat and data state are not present in WebSocket API Refresh Message.

Federated Authorization

  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Intelligent Tagging
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open Calais
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • RDMS
  • 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
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • Workspace SDK
    • Element Framework
    • Grid
  • World-Check Data File
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges