DSS Rest Api tutorial example. Malformed request

Hi

while cheking in Postman just first example from DSS Rest API tutorials introduction Authentication Request

https://developers.refinitiv.com/en/api-catalog/datascope-select/datascope-select-rest-api/tutorials#rest-api-tutorials-introduction


In Postman I'm getting this response while trying to authenticate

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


But my request body looks fine, I just copied it from tutorial


1625492643885.png

Best Answer

  • I've changed headers from

    Content-Type: application/json

    to

    Content-Type: application/json; odata=minimalmetadata

    And went trough

Answers

  • I am encountering the same error/response with the same request right from the tutorial.

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

    Changing content-type to application/json; odata=minimalmetadata did not change the result.


    Any other suggestions? Thank you

  • I figured out the issue and I believe it's a bug in the API. It appears that the format of the json I was sending is problematic. I am sending valid JSON so the parsing on the API side seems unnecessarily finicky.


    screenshot-2021-09-14-084852.jpg