Postman error message malformed request
hi - trying to formulate an API request with Postman. Despite copying all the set up and following step by step i get the following error message.
I am following the tutorial here and got to step 7
Body raw test is:
{
"Credentials": {
"Username": "foo",
"Password": "foo_pass"
}
}
Best Answer
-
Hi @mbh181 ,
I would try hardcoding the creds into the request now that "malformed request" is gone.
Suspect something goes off with the substitution from the environment, but we can verify it this way.
Replace the curly brackets with variables dss-user and dss-password with double-quoted valid creds, for example:
{
"Credentials": {
"Username": "youruser",
"Password": "yourpassword"
}
}what do you see?
0
Answers
-
Hello @mbh181 ,
It's hard to tell from the provided information, the request does not look wrong to me. In order to avoid small typos and invisible characters that are very hard to detect this way. Please try to:
1. Download starter Postman collection from DSS REST Tutorials Postman collection .
2. Import starter collection and and starter environment.
3. Replace your credentials into environment.
4. Try User authentication- let us know the result without exposing your creds
Hope this information helps.
0 -
0
-
Hello @mbh181 ,
Let us verify together a couple of items:
1. The connectivity from your test machine to DSS endpoints is open and connection can be established:
selectapi.datascope.refinitiv.com on port https=443
?
2. Your DSS environment, with correct endpoint URL and valid credentials, username and password replaced, is selected in Postman and correct URL to Datascope is replaced instead of the {{variables}}, for example, you should be seeing on Postman console something like:
?
0 -
I assumed that you copied the JSON message from the tutorial pages.
The copied message may contain invalid characters.
I got the same error message when I used the copied message in Postman.
You need to delete all space characters in the message an try again.
0 -
I now get the following error although my login works on the datascopeselect website
0 -
Hello @mbh181 ,
Let us go over a couple of checkpoints:
Do you have the valid DSS username and password that are allocated to you?
Are you able to log into DSS GUI at https://select.datascope.refinitiv.com/ with the same username and password?
Have you replaced the valid username and password into your Postman environment, and do they get substituted in place of "dss-user" and "dss-password" placeholders and you see them passed into your authentication request as you hover over the variables?
I would like to suggest, if you have not done so, to over DSS REST REST API Tutorials Introduction, it explains the steps required to get started working with DSS from Postman and the reasoning behind the steps. The next tutorials in the same section should help understanding and running successfully the common requests you may require once you have authenticated.
I hope this information helps
0 -
I confirm my access works with https://select.datascope.refinitiv.com/
credentials, as far as i can see are supplied correctly in the Postman environment.
Re: the tutorial: this is what i originally followed and where the error came up.
any other suggestions to get access?
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
- 685 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
- 252 ETA
- 556 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
- 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
- 651 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
- 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
- 46 中文论坛