Forbidden 403 error
Hello,
I'm using the machine id and password with client id but I'm having a forbidden 403 error after authentication. Could you please guide me?
Sending EDP-GW service discovery request to https://api.refinitiv.com/streaming/pricing/v1/
EDP-GW service discovery HTTP code: 403 Forbidden
Stop trying with the request
Failed to retrieve endpoints from EDP Service Discovery. Exiting...
Machine ID : GE-A-01444311-3-2480
Best Answer
-
This response is coming from the machine ID that has expired license. Therefore, it can get the access token but failed to retrieve service directory with 403 error message. I can reproduce the same error with my testing ID.
Once the new trial license is in place, you should be able to start to retrieve the data with the same credentials.
0
Answers
-
If the problem is because of the host, please suggest me how to find the host name.
Thanks.
0 -
Hello @monojit.banerjee
Have you got access token successfully? If yes, please see the answers in this question which may help you.
0 -
Hello @monojit.banerjee
If you got the access token successfully, could you please check if the returns JSON message from RDP authentication has "trapi.streaming.pricing.read" value in the scope attribute?
Basically, the Service Discovery ("/pricing/v1") requires trapi.streaming.pricing.read permission scope to access the list of ERT Cloud VIPs.
0 -
Could you please share your "scope" value from the JSON access token?
0 -
This is not about the hostname but the previous trial has been expired. I have reached out to the account team and they have activated the 30-day trial period for this machine ID.
0 -
Thanks I could able to connect now. But, I'm getting static data after that it couldn't able to get Live Stream data. Is that the expected behaviour? Please help me with that.
Sending authentication request with password to https://api.refinitiv.com:443/auth/oauth2/beta1/token ...
EDP-GW Authentication succeeded. RECEIVED:
{
"access_token":"eyJ0e.....FPHjpg",
"expires_in":"300",
"refresh_token":"9c...-...-b8",
"scope":"trapi.streaming.pricing.read",
"token_type":"Bearer"
}
Sending EDP-GW service discovery request to https://api.refinitiv.com/streaming/pricing/v1/
EDP-GW Service discovery succeeded. RECEIVED:
{
"services":[
{
"dataFormat":[
"tr_json2"
],
"endpoint":"amer-2.pricing.streaming.edp.thomsonreuters.com",
"location":[
"us-east-1b"
],
"port":443,
"provider":"aws",
"transport":"websocket"
},
{
"dataFormat":[
"tr_json2"
],
"endpoint":"amer-3.pricing.streaming.edp.thomsonreuters.com",
"location":[
"us-east-1a",
"us-east-1b"
],
"port":443,
"provider":"aws",
"transport":"websocket"
},
{
"dataFormat":[
"tr_json2"
],
"endpoint":"apac-2.pricing.streaming.edp.thomsonreuters.com",
"location":[
"ap-southeast-1b"
],
"port":443,
"provider":"aws",
"transport":"websocket"
},
{
"dataFormat":[
"tr_json2"
],
"endpoint":"emea-1.pricing.streaming.edp.thomsonreuters.com",
"location":[
"eu-west-1a"
],
"port":443,
"provider":"aws",
"transport":"websocket"
},
{
"dataFormat":[
"tr_json2"
],
"endpoint":"apac-3.pricing.streaming.edp.thomsonreuters.com",
"location":[
"ap-southeast-1a",
"ap-southeast-1b"
],
"port":443,
"provider":"aws",
"transport":"websocket"
},
{
"dataFormat":[
"tr_json2"
],
"endpoint":"emea-2.pricing.streaming.edp.thomsonreuters.com",
"location":[
"eu-west-1b"
],
"port":443,
"provider":"aws",
"transport":"websocket"
},
{
"dataFormat":[
"tr_json2"
],
"endpoint":"emea-3.pricing.streaming.edp.thomsonreuters.com",
"location":[
"eu-west-1a",
"eu-west-1b"
],
"port":443,
"provider":"aws",
"transport":"websocket"
},
{
"dataFormat":[
"tr_json2"
],
"endpoint":"apac-1.pricing.streaming.edp.thomsonreuters.com",
"location":[
"ap-southeast-1a"
],
"port":443,
"provider":"aws",
"transport":"websocket"
},
{
"dataFormat":[
"tr_json2"
],
"endpoint":"amer-1.pricing.streaming.edp.thomsonreuters.com",
"location":[
"us-east-1a"
],
"port":443,
"provider":"aws",
"transport":"websocket"
}
]
}
Connecting to WebSocket wss://amer-3.pricing.streaming.edp.thomsonreuters.com:443/WebSocket for session1...
WebSocket successfully connected for session1!
SENT on session1:
{
"Domain":"Login",
"ID":1,
"Key":{
"Elements":{
"ApplicationId":"256",
"AuthenticationToken":"ey...Hjpg",
"Position":"192.168.2.75/Operations-PC"
},
"NameType":"AuthnToken"
}
}
RECEIVED on session1:
RECEIVED on session1:
WebSocket Closed for session1
Reconnect to the endpoint for session1 after 3 seconds...
Connecting to WebSocket wss://amer-3.pricing.streaming.edp.thomsonreuters.com:443/WebSocket for session1...
WebSocket successfully connected for session1!
SENT on session1:
{
"Domain":"Login",
"ID":1,
"Key":{
"Elements":{
"ApplicationId":"256",
"AuthenticationToken":"eyJ0eX...jpg",
"Position":"192.168.2.75/Operations-PC"
},
"NameType":"AuthnToken"
}
}
RECEIVED on session1:
Can you please help with this
0 -
Hello @manoj.pandeti
I cannot find an item request message in a given JSON log. Does the application request any items to ERT in Cloud yet?
You can find more detail regarding how to connect and consume data from ERT in cloud via the following resources:
- Elektron WebSocket API Tutorial: Request Data from Server
- Elektron WebSocket API Quick Start:
- Elektron WebSocket API examples for ERT in Cloud
0 -
Hello @manoj.pandeti
Do you still encounter any connection and subscription problems?
1
Categories
- All Categories
- 6 AHS
- 37 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 中文论坛