HTtp request throwing error.

I am trying the following code on postman with token and I got the following response
{
"error": {
"message": "The Authorization header is malformed. Supported Authorization types are Token,Basic."
}
}
for the below request
Content-Type: application/json; odata=minimalmetadata
{<!-- -->
"ExtractionRequest"
: {<!-- -->
"@odata.type"
:
"#DataScope.Select.Api.Extractions.ExtractionRequests.ElektronTimeseriesExtractionRequest"
,
"ContentFieldNames"
: [
"Ask"
,
"Bid"
,
"High"
,
"Last"
,
"Low"
,
"Trade Date"
],
"IdentifierList"
: {<!-- -->
"@odata.type"
:
"#DataScope.Select.Api.Extractions.ExtractionRequests.InstrumentIdentifierList"
,
"InstrumentIdentifiers"
: [
{<!-- -->
"Identifier"
:
"TRI.N"
,
"IdentifierType"
:
"Ric"
}
],
"ValidationOptions"
:
null
,
"UseUserPreferencesForValidationOptions"
:
false
},
"Condition"
: {<!-- -->
"ReportDateRangeType"
:
"Range"
,
"QueryStartDate"
:
"2015-12-01T00:00:00.000Z"
,
"QueryEndDate"
:
"2015-12-02T00:00:00.000Z"
}
}
}
Best Answer
-
Hello @gkusampudi ,
I was able to run the same request via Postman, without issues. I have updated the headers to include Content-Type: application/json and odata=minimalmetadata.
From the error message, it appears that a wrong Authorization type is applied.
As the issue does not appear to be with the request or the headers as listed but with the authorization, suggest to work through tutorial REST API Tutorial 7: On Demand End of Day extraction by downloading Postman starter and submitting the included naked ElektronTimeseries request via Postman. If that works as expected, update request body to your request. if that also works as expected, the next step is to verify Authorization aspect in your custom code.
Please see that the tutorial collection uses "Inherit Auth from parent" type of Authorization, which is populated with "No Auth", and passes Authorization token in Headers. if I change Authorization type to "Bearer Token" I am able to reproduce the same error as you see. Therefore, believe the aspect to verify in the code should be Authorization, and it should emulate the working approach from tutorial.
Hope that this information is of help
0
Answers
-
refinitiv.pdf. I have attached Header, Body and Authorization screenshots from postman. can you point out where is it wrong?
0 -
0
-
I tried with Token{_0l86oyVJn...}
got the following error
{
"error": {
"message": "Authentication request failed because of invalid token"
}
}
I have pulled the above token using this
{
"Credentials": {
"Username": "XXXXX",
"Password": "XXXXX"
}
0 -
It should be:
Token _0l86oy...
I removed the token.
0 -
now getting permission error.
0 -
now getting permission error.
0 -
Please contact your Refinitiv account team or Sales team directly to verify your permission. The ElektonTimeSeriesReportTemplate is for the Tick History product.
If you don't have permission to access the Tick History product, you can't use that template.
Please refer to the DataScope Select Tutorials for the sample DSS requests.
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 167 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 688 Datastream
- 1.4K DSS
- 624 Eikon COM
- 5.2K Eikon Data APIs
- 11 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 255 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
- 692 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
- 105 UPA
- 194 TREP Infrastructure
- 229 TRKD
- 918 TRTH
- 5 Velocity Analytics
- 10 Wealth Management Web Services
- 91 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛