Websocket API didn't receive response after Service Discovery Call - In client Production environ...

...ment
Hi Team,
Background:
In my client's production environment all of sudden, we stop getting any response from Discovery Service and due to this we don't have any WebSocket server URL and port to which we can connect and get the rate.
This was working fine till last weekend and we are able to retrieve the rate without any issues.
In client production, we are using the service from last 3-4 months without any issues.
Note: In my local test environment, I can see the same issue and not able to retrieve any rate
Questions:
Is this something got broker from Refinitiv side?
Is anyone else who is using WebSokcet API facing the same issue?
Appreciate your comments here.
Best Answer
-
@pradeep.badoni it is because service discovery can't handle chunked rest responses. to fix this issue, replace
if (webResponse.ContentLength > 0)
with if (webResponse.GetResponseHeader("Transfer-Encoding").Equals("chunked") || webResponse.ContentLength > 0)
for more details refer this fix RTSDK-5356 in git
https://github.com/Refinitiv/websocket-api/commit/3f8af94525ad9108e4b68e0bcf47bc7fd0f81fe9
0
Answers
-
Same issue is happening for me too. It was working fine when I left the office on friday but not working when I am back on monday. One thing I noticed is that inside DiscoverServices() method the webResponse.ContentLength is -1 which fails the if condition if (webResponse.ContentLength > 0). When I commented out that condition it is working fine. But don't know why the webResponse.ContentLength is -1. Must be something that need to be sorted out from the Refinitiv's end.
0 -
Hello @pradeep.badoni @thomas.abraham
Could you please try the Service Discovery request with the following curl command? Please replace the <access_token> with your Access Token from the RDP Auth Token service (Note: please notice a space between text 'Bearer' and the access token).
curl --location --request GET 'https://api.refinitiv.com/streaming/pricing/v1/'; \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <access token>'If you still encounter errors from the curl command, I suggest you contact the RDP support team via https://my.refinitiv.com/ website to help you verify the issue.
Please select the "Pricing - Refinitiv Data Platform" product on the my.refinitiv.com website, and give them the following information:
- The machine-id that encounters the problem
- The URL endpoint ('https://api.refinitiv.com/streaming/pricing/v1/')
- The error response message
- Date and time that encounters the problem
Hope this helps.
0 -
Thanks Everyone to look into it and help to resolve the issue.
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
- 250 ETA
- 555 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
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 193 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 中文论坛