Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • DSS /

For a deeper look into our DataScope Select REST API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

avatar image
Question by mbh181 · Dec 14, 2021 at 10:27 AM · dsserror

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.


{ "error": { "message": "Malformed request payload: Syntax error at Line 2, Char 1: expected '}' " }}


I am following the tutorial here and got to step 7


Body raw test is:


{

"Credentials": {

"Username": "foo",

"Password": "foo_pass"

}

}


Tutorials | Refinitiv Developers

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

8 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by zoya faberov · Dec 14, 2021 at 03:03 PM

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?

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
REFINITIV
Answer by zoya faberov · Dec 14, 2021 at 01:00 PM

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.

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
Answer by mbh181 · Dec 14, 2021 at 01:22 PM

Hi @zoya faberov

I have tried this and this was unsuccessful.

1639488160196.png

1639488106790.png



1639488160196.png (16.8 KiB)
1639488106790.png (8.0 KiB)
Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
REFINITIV
Answer by zoya faberov · Dec 14, 2021 at 02:00 PM

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:

post.gif

?


post.gif (13.7 KiB)
Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
REFINITIV
Answer by Jirapongse · Dec 14, 2021 at 02:07 PM

@mbh181

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.

1639490669225.png

You need to delete all space characters in the message an try again.

1639490763949.png


1639490669225.png (50.9 KiB)
1639490763949.png (46.5 KiB)
Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
Answer by mbh181 · Dec 14, 2021 at 02:16 PM

I now get the following error although my login works on the datascopeselect website


1639491369524.png


1639491369524.png (21.2 KiB)
Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
REFINITIV
Answer by zoya faberov · Dec 14, 2021 at 02:29 PM

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

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
Answer by mbh181 · Dec 14, 2021 at 02:34 PM

Hi @zoya faberov


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?


Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
13 People are following this question.

Related Questions

Error for previously working request

Why am I getting a SecurityFaultException

Issue on SXF price on the 2020-05-19

DSS connection got timeout

DSS REST API - Error 400 malformed request payload

  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Intelligent Tagging
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open Calais
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • RDMS
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • Workspace SDK
    • Element Framework
    • Grid
  • World-Check Data File
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges