823
Views
4
Comments
Solved
Consumed Rest API giving 400 error in my Rest API Call.
Question

Hi, I am doing a Rest API Call which will need to take an input a file as a parameter. It is showing 400 error when it is running. Please help us to solve the issues of 400 error 

2024-05-03 14-03-28
Sudip Dey
Solution

Thank you for your Reply.  I solve the Rest API issues. There was a problem with the passing parameter. It is now working fine.

UserImage.jpg
Cátia Frederico

Sudip Dey wrote:

Thank you for your Reply.  I solve the Rest API issues. There was a problem with the passing parameter. It is now working fine.

What was the issue about the parameter spefically? It was about the data type? The structure was different?


UserImage.jpg
G Andrew Duthie
 
MVP

Some questions:

  • What version of the OutSystems platform and Service Studio are you using?
  • Where are you seeing the error? In the integrations log in Service Center? If 
    • If so, is there any additional detail in the error message?
  • Is the REST API you are calling public, and if so, can you share the endpoint URL?

400 error is a "bad request" which may mean that something is malformed about the request. Could be you aren't sending the file correctly. The API might require a specific content-type header to be sent.

Without more information about the API you are trying to call, it's very difficult to help troubleshoot.

2021-04-09 11-42-43
assif_tiger
 
MVP
2024-05-03 14-03-28
Sudip Dey
Solution

Thank you for your Reply.  I solve the Rest API issues. There was a problem with the passing parameter. It is now working fine.

UserImage.jpg
Cátia Frederico

Sudip Dey wrote:

Thank you for your Reply.  I solve the Rest API issues. There was a problem with the passing parameter. It is now working fine.

What was the issue about the parameter spefically? It was about the data type? The structure was different?


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.