question

Upvotes
Accepted
11 1 1 5

EDP tutorial on github doesn't work

I followed the EDP tutorial on https://github.com/Refinitiv/websocket-api/tree/master/Applications/Examples/EDP/python; however, none of the files could run on my machine. I'm sure I have python 3.6.7 and websocket-client greater than 0.49.

For the get token part, I got error for 502 bad gateway. I tried rewrote the function by myself and it worked, but then for market_price_edpgw_service_discovery.py, I got stuck at the connecting to WebSocket part. It showed WebSocket Closed for session1.

rdp-apirefinitiv-data-platformtutorial
icon clock
10 |1500

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

1 Answer

Upvotes
Accepted
20.3k 73 10 20

Hi @jenny.liu1

If you can provide the output from the example when you run it, that may help us understand what is going wrong. At present, the information you have provided is not sufficient to perform any diagnostic. You can remove any username / password etc from the output.

Also, it may be useful to know what changes you made to the other example to make it work...

Can you confirm you have a valid machine-id for username and password when running the service_discovery example?

Also, for the market_price_edpgw_authentication example you will need a valid hostname too.

icon clock
10 |1500

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

Hi @hsss

Thanks for accepting the answer. However, if you can add a comment explaining how you resolved the problem - it may help others in a similar situation in the future.

Click below to post an Idea Post Idea