I am just running the provided examples. https://github.com/Refinitiv-API-Samples/Example.RDPAPI....

...Python.InstrumentPricingAnalytics/blob/main/financial-contracts/Interest%20Rate%20Derivatives/Basis%20Swap%20Valuation.ipynb and got this error
Best Answer
-
Hi @elviejane.balmes,
You should add session.set_log_level(1) to get more detail.
On my side, it doesn't work because of following, I didn't get same result but result is None:
print(response.data.raw)
None
print("Error code:", response.error_code)
print(response.error_message)Error_code: 503
<html> <head><title>503 Service Temporarily Unavailable</title><script type="text/javascript" src="/ruxitagentjs_ICA2SVfqru_10209210209190405.js" data-dtconfig="rid=RID_1587191951|rpid=-42746178|domain=reutest.com|reportUrl=/rb_bf83661jww|app=ea7c4b59f27d43eb|featureHash=ICA2SVfqru|vcv=2|xb=^bs/EikonLibrary^bs/LibraryServerSvc^bs.svc^bs/download|rdnt=1|uxrgce=1|bp=3|cuc=vfgpmaot|mel=100000|dpvc=1|lastModification=1614246571307|dtVersion=10209210209190405|tp=500,50,0,1|uxdcw=1500|vs=2|agentUri=/ruxitagentjs_ICA2SVfqru_10209210209190405.js"></script></head> <body> <center><h1>503 Service Temporarily Unavailable</h1></center> </body> </html>0
Answers
-
Error:
2021-02-28 14:01:50,326 - Session session.platform - Thread 27328 | MainThread
ERROR!!! An error occured while requesting URL('https://api.refinitiv.com/data/quantitative-analytics/v1/financial-contracts').
2021-02-28 14:01:50,326 - Session session.platform - Thread 27328 | MainThread
ERROR!!! An error occured while requesting URL('https://api.refinitiv.com/data/quantitative-analytics/v1/financial-contracts').
2021-02-28 14:01:50,326 - Session session.platform - Thread 27328 | MainThread
ERROR!!! An error occured while requesting URL('https://api.refinitiv.com/data/quantitative-analytics/v1/financial-contracts').
2021-02-28 14:01:50,326 - Session session.platform - Thread 27328 | MainThread
ERROR!!! An error occured while requesting URL('https://api.refinitiv.com/data/quantitative-analytics/v1/financial-contracts'). Error: 2021-02-28 14:01:50,326 - Session session.platform - Thread 27328 | MainThread ERROR!!! An error occured while requesting URL('https://api.refinitiv.com/data/quantitative-analytics/v1/financial-contracts').0 -
A problem/comment more than an answer that may help finding the issue:
It works for me the first time I run the code after a jupyter kernel start. I have issues in running it again. It is as if some history is causing issues in the second run as no new token is being requested or previous session not closed properly! Is session.open() an asynchronous session? How do you select the session type; synchronous or asynchronous?0 -
Hello
I just see this post now. I don't reproduce the error and from the message I believe there was a temporary unavailability of the service. I assume the example runs fine now.
best regards
Samuel
0 -
Have you been able to make any progress in troubleshooting the issue?
With regard to your question, I'm not sure what you mean by "asynchronous session". I assume you open a platform session, right? Once opened, the session stays open unless you close it. Under the hood RDP Library is refreshing the token as required by RDP platform. Could you check the session state by calling get_open_state method? And, as @pierre.faurel suggested, use session.set_log_level(1) to create a more verbose log, which will hopefully shed some light on why the request to IPA endpoint fails.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
- 251 ETA
- 556 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
- 649 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
- 916 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 中文论坛