RDP News Messages, Cloud credentials expired error
Hi all,
I'm running RDP News Messages (option -h or -s) with the Python script downloaded from Refinitiv site, together with RDP Token and sqsQueue.
Token seems fine and permissioned on news:
"scope": "trapi.alerts.news-headlines.crud trapi.alerts.news-stories.crud trapi.alerts.news.crud trapi.data.news-story-viewer.read trapi.data.news.read"
The problem is that I get the error at every news subscription (headers or stories it's the same):
Polling messages from queue...
Cloud credentials exprired!
...
Do you have any suggestion or idea ?
Many thanks and best regards
Alessandro
Best Answer
-
I thought I would add some additional information on this issue - in case it helps others with a similar issue.
The error - "Cloud credentials exprired!" - displayed by the example can be misleading. It is a catch-all exception handler invoked when the call to sqsQueue.startPolling() in the newsMessages.py fails.
In my case, I had changed the region from the default 'us-east-1' which caused an issue. Adding additional exception handling around the sqs.receive_message call in sqsQueue.py yielded a more helpful 'An error occurred (AWS.SimpleQueueService.NonExistentQueue) when calling the ReceiveMessage operation: The specified queue does not exist for this wsdl version'
I have reported the above to the relevant people and hopefully, the example code will be updated in the near future.
0
Answers
-
Hello @alessandro.bonizzoni1 ,
A quick disclaimer, if the core of the issue is with your assigned RDP permissions, you will need to contact Permissions team for help verify the permissions, we will not be able to help.
If the issue is at the programmatic integration level, I can try to suggest:
I believe the best way to investigate is via a python IDE where you can run example step by step, for example VSCode.
The suspected issue looks to be within startNewsMessages, between getCloudCredentials and startPolling:
I would breakpoint at getCloundCredentials, to verify if you are obtaining the cloud creds and that the cloud creds obtained as well as params look valid, before they you fail to startPolling.
Let us know if this suggestion helps, how this works on your side
1 -
Thanks a lot,
it seems solved, actually I was using in sqsQueue.py
sqs = session.client('sqs', use_ssl=False, verify=False)
in order to avoid an SSL CERT VERIFY error appearing with Python 3.10.
Now I've reinstalled Python 3.11 and it works using the "official"
sqs = session.client('sqs')
without the Cloud expire error
Thanks the same for your help !
Best regards
Alessandro
1
Categories
- All Categories
- 6 AHS
- 39 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛