cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Getting "Bad request" error while using REST POST snap

SGArchitect
New Contributor II

I am using REST POST snap to connect to an end point. Snap details are shown in the screenshot.
When I execute the snap, it returns the following error:

โ€œstatus code = 400, reason phrase = Bad Request, refer to the error_entity field in the error view document for more details.โ€

image

image

When I use Postman, it is working fine. I just provide the end point and call it using POST method. The REST API should return something like โ€œemail: This field is requiredโ€ฆโ€.
I am expecting the same result when I use REST POST snap. However, the snap is returning โ€œ400: bad requestโ€ error.

image

Could you please let me know what the issue could be?

2 REPLIES 2

SpiroTaleski
Valued Contributor

@SGArchitect

Open error view on the Rest Post Snap, and check the โ€œerror_entityโ€ field inside the error.

โ€œerror_entityโ€ field should contain the specific error message.

BR,
Spiro Taleski

Thank you, Spiro.

Error view showed me the details. We can mark this post as resolved.