question

Upvotes
Accepted
11 1 4 7

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 512.0 KiB each and 1.0 MiB total.

@jenny.liu1

Hi,

Thank you for your participation in the forum.

Is the reply below satisfactory in answering your question?

If yes please click the 'Accept' text next to the most appropriate reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

AHS

1 Answer

· Write an Answer
Upvotes
Accepted
25.3k 87 12 25

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 512.0 KiB each and 1.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.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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