Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

587
Views
API : Postman form-data works, but the raw equivalent doesn't

I have an API in which if I am sending POST request thru body type : form-data , i am able to see the output. Here is the successful request Form-data success

But if I use the same data in raw form, it give me this error

 "error": "invalid_request",
    "error_description": "AADB2C90083: The request is missing required parameter: grant_type.\r\nCorrelation ID: 742e7aa2-de23-4589-8b5c-c2fadbbe1537\r\nTimestamp: 2022-01-26 21:21:29Z\r\n"
}

Raw data failure

Here is what Header looks like when the request is successful header successful The reason i encountered is, if i unselect the Content-type under header at the success (first) scenario, it also gave me the same error.

I also saw this post Postman form-data works, but the raw equivalent doesn't

But this does not work for my solution

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

I am using Cypress to send this POST request. I solved this by adding form "true" in the function. I still am not sure how to fix this in POSTMAN

headers: 
   {
     Connection: "keep-alive",
     "Content-Type": "form-data"
   },
form: true,
about 4 years ago · Juan Pablo Isaza Report

0

JSON and Form Data are completely different ways to encode data.

If your server-side program expects to receive data encoded as Form Data (and only as Form Data) then it isn't going to be able to handle you sending it JSON instead.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!