How about using direct axios API?

axios({
  method: 'post',
  url: baseUrl + 'applications/' + appName + '/dataexport/plantypes' + plan,
  headers: {}, 
  data: {
    foo: 'bar', // This is the body part
  }
});

Source: axios api

Answer from Ukasha on Stack Overflow
🌐
GitHub
github.com › axios › axios › issues › 1033
Always failed when POST data with json (body: raw) · Issue #1033 · axios/axios
August 5, 2017 - let input = { 'longitude': -6.3922782, 'latitude': 106.8268856, 'content': 'uget - uget sampai kaki lemes', 'pictures': [] } axios({ method: 'POST', url, headers: { 'Content-Type': 'application/json', 'Authorization': this.state.headers.authorization }, data: input }) .then((resultAxios) => { console.log('hasil axios', resultAxios) }) and the status result always error 500. If im try send data with postman, everything is fine in postman, i set · headers: { Authorization: ''', Content-Type: application/json } body = raw, JSON · How can solve this problem? Thanks :) No one assigned · No labels · No labels · No type · No projects · No milestone · None yet · No branches or pull requests ·
Author   pisangGoreng
Discussions

How get request with axios body raw json in vue js
Why add the Content-type header? application/json is the default for all Axios POST, PUT and PATCH requests 2020-08-03T08:32:41.017Z+00:00 ... @Phil no data is the request body, config is a different parameter that is used to configure the data to be sent. And yeah it is default, but I just ... More on stackoverflow.com
🌐 stackoverflow.com
How to access raw axios response when building programmatic-style node?
Hey there, I am trying to catch the raw request response in my step execution but I am not able to do so. What I am trying to do is retrieve raw response, parse the error field and throw it. However, I can only catch an error, which indeed has the raw response in a message key: message: `422 ... More on community.n8n.io
🌐 community.n8n.io
0
0
October 10, 2024
node.js - How to Send a Raw Data Body to an Axios GETRequest in React Native? - Stack Overflow
I try to Get data from GET API But I did not want to fetch the all record only records match with the parameters that I send in raw data as json formate How can I do this in react native Please help More on stackoverflow.com
🌐 stackoverflow.com
node.js - How to get raw response data from axios request? - Stack Overflow
I am making a request to an API in which they sign their response body with a private key and send me the signature in a header. I am supposed to use their public key to validate the signature with the original response body but at the moment axios parses the response data there is something that is changing in it which makes the signature invalid. Is there some way to get the raw ... More on stackoverflow.com
🌐 stackoverflow.com
🌐
n8n
community.n8n.io › questions
How to access raw axios response when building programmatic-style node? - Questions - n8n Community
October 10, 2024 - Hey there, I am trying to catch the raw request response in my step execution but I am not able to do so. What I am trying to do is retrieve raw response, parse the error field and throw it. However, I can only catch an error, which indeed has the raw response in a message key: message: `422 - {response} I have tried parsing the response as JSON again from this key but my response contains HTML, not sure how the response is decoded in the message key of the error, but I am not able to parse i...
🌐
Form.io
mindbowser.com › home › blogs › how to send a raw data body to an axios request in react native?
How to Send Raw Data Body to Axios Request in React Native?
January 25, 2024 - To Send a Raw Data Body to an Axios Request in React Native you just have your raw text within body or pass it directly within quotes as 'raw text to be sent' in place of body
🌐
Stack Overflow
stackoverflow.com › questions › 69873843 › how-to-send-a-raw-data-body-to-an-axios-getrequest-in-react-native
node.js - How to Send a Raw Data Body to an Axios GETRequest in React Native? - Stack Overflow
const GetData = () => { axios({ method: 'get', url: 'http://10.0.2.2:3000/DonarsRecod', params: { organ: "Lungs" } }) .then(function(response) { console.log("response", JSON.stringify(response.data)) }) .catch(function(error) { console.log("error", error) }) } ... Sign up to request clarification or add additional context in comments.
Find elsewhere
🌐
Mastering JS
masteringjs.io › tutorials › axios › get-with-data
Axios GET with Data - Mastering JS
September 8, 2020 - So most HTTP services don't support GET request bodies. Instead of sending your data using the data parameter, you can use the params option to tell Axios to put your parameters in the query string:
🌐
Apidog
apidog.com › blog › axios-get-with-body-and-header
How to make Axios API GET Request with Body and Headers
February 4, 2026 - If you find yourself needing to ... GET requests, it’s important to understand that the HTTP specification typically does not include a request body for GET requests....
🌐
CopyProgramming
copyprogramming.com › howto › how-can-i-add-raw-data-body-to-an-axios-request
Adding Raw Data Body to an Axios Request: A Guide
November 16, 2025 - Understanding this distinction is crucial: the HTTP standard explicitly states that GET should only use URL parameters for filtering, sorting, and pagination—never request bodies. The standard and correct way to send data with Axios GET requests is through query parameters, implemented using the params property in your Axios configuration.
🌐
Mastering JS
masteringjs.io › tutorials › axios › response-body
Get the HTTP Response Body with Axios - Mastering JS
July 23, 2020 - When you `await` on an Axios request, you get back an Axios response object. Here's how you can get the HTTP response body from an Axios response object.
🌐
GitHub
github.com › axios › axios › issues › 2435
How do Axios handle raw response data? · Issue #2435 · axios/axios
September 25, 2019 - How do Axios handle raw response data?#2435 · Copy link · TorRanfelt · opened · on Sep 25, 2019 · Issue body actions · I haven't been able to find it in Axio's code, but what is the type of the raw data returned on a response by the browser that Axios then work on?
Author   TorRanfelt
🌐
GitHub
github.com › usebruno › bruno › issues › 609
[feature] Use raw response data instead of the default output from axios · Issue #609 · usebruno/bruno
October 16, 2023 - As a user, I'd like to have access to the original response data. The current implementation relies on the default axios behavior, that does two things with the response data: Converts it to string, which breaks binary responses (e.g. im...
Author   Sl-Alex
🌐
RapidAPI
rapidapi.com › guides › request-body-axios
How to send the request body using Axios?
October 31, 2022 - Loading · Follow us · Product · Build APIs · Public API Hub · API Hub for Enterprise · Rapid API Client VSCode · Enterprise · Internal Hub · Partner Hub
🌐
LogRocket
blog.logrocket.com › home › axios in javascript: how to make get, post, put, and delete requests
Axios in JavaScript: How to make GET, POST, PUT, and DELETE requests - LogRocket Blog
April 9, 2025 - This code instructs Axios to send a POST request to /login with an object of key-value pairs as its data. Axios will automatically convert the data to JSON and send it as the request body.
🌐
GitHub
github.com › axios › axios › issues › 5466
Breaking change from 1.1.3 when sending raw data · Issue #5466 · axios/axios
January 12, 2023 - Describe the bug In 1.1.3, this: axios.post("/api-endpoint", "lorem") produces a POST request with raw body lorem and a Content-Type header of text/plain;charset=UTF-8. In 1.2.2, it produces a POST request with body lorem but Content-Typ...
Author   nguiard
🌐
xjavascript
xjavascript.com › blog › how-can-i-add-raw-data-body-to-an-axios-request
How to Add Raw Data Body to an Axios POST Request in React: A Complete Guide — xjavascript.com
By default, Axios sends data as application/x-www-form-urlencoded (form-encoded key-value pairs) if you pass an object. However, for raw data (like JSON), we need to explicitly configure the request to use the correct Content-Type header and structure the data properly. To send a raw data body, you ...