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
0 -
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
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
- 687 Datastream
- 1.4K DSS
- 621 Eikon COM
- 5.2K Eikon Data APIs
- 11 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 4 Trading API
- 2.9K Elektron
- 1.4K EMA
- 254 ETA
- 557 WebSocket API
- 38 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
- 276 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
- 669 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
- 229 TRKD
- 917 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
- 48 中文论坛