score:0
get doesn’t accept sending a body, use post instead:
router.post('/login', async function(req,res) {
// …
const response = await axios.post("http://localhost:3002/login", { email, pass })
also, the response.config.body is not a thing, if you look at request config documentation, there is the property “data”, rather than “body”.
console.log(response.config.data);
hopefully that helps!
Source: stackoverflow.com
Related Query
- Axios not sending body
- body data not sent in axios request
- Axios delete request is not taking the body data
- React Native + Expo + Axios file upload not working because axios is not sending the form data to the server
- axios is not sending X-CSRFToken header in production
- Sending a post request through Axios is generating an empty RequestBody in Spring-Boot backend. Works in Postman but not through Axios post request
- Sending Request body for GET method in AXIOS throws error
- Sending state for an Axios POST and data not showing in req.body
- Sending POST request with body in axios
- Django REST Method Destroy getting 404 not found when sending from axios
- How do I see why Axios POST request is not sending payload data to Heroku Backend?
- Why is my axios post request not sending data? I'm getting a response that means the fields are empty
- Axios post request body not parsing with mux server
- Axios not sending as post method
- Axios not sending authorization header - ReactJS
- Axios post not passing body parameters
- POST request with Axios not sending data to my server
- Request body is not being passed from axios get call to Django Rest Framework
- Axios with Redux Saga not sending form data when insert and put to nodeJs+express api
- Authentication credentials were not provided when sending request from React JS axios
- React Js Axios Post Request not receiving body back from web api
- Data from react axios post is not sending data to django
- Sending API calls using axios is not successful
- Twilio.Device.connect() not sending body to Express
- Sending the bearer token with axios
- Axios Delete request with body and headers?
- React Checkbox not sending onChange
- How can I add raw data body to an axios request?
- Axios posting params not read by $_POST
- Axios is not defined
More Query from same tag
- How to reorder map function in React
- Adding html and js code under React src folder
- Remove Browser Autofill feature
- Reset Redux-Form after server response
- prevent a button being clicked consecutively in React
- Accessing Django MEDIA_URL and MEDIA_ROOT setting.py values from ReactJS frontend
- GatsbyJS - GraphQL ACF query issue
- Is it possible to show a caps lock indicator on a password field in formik?
- Access SVG node from DOM in React Redux GUI for transforming mouse position to and from viewBox coordinate system
- React modal animation on click
- How to use same page anchor tags to hide/show content in Next.js
- How to stop sliding on last image of slider in carousel in bootstrap 5 on a reactjs project
- GraphQL query complaints in non-page component for GatsbyJS website
- how to use dangerouslySetInnerHTML in react-highlight-words
- Cannot read property 'address_1' of undefined - React
- React element type cannot be coerced to 'string'
- React - cannot read properties of undefined error showing up in a label
- Todolist react hooks
- Center align items in material-ui
- Updating State dynamically with React using Checkboxes
- How do I get data from Axios and return it from a Function Component in React?
- Material Ui Textfield Pattern matching
- React/Redux can’t access properties of object in an array
- Firebase - Best way to always check if a user is logged in?
- How to add legend to a react + d3 grouped and stacked bar chart?
- React: How to render a fallback for a TypeAhead component when search yields no match?
- Styled-components: React does not recognize the `lineHeight` prop on a DOM element
- JSON: How to get data from a same "column" with different names?
- Material UI TextField Label Positioned Incorrectly
- Particle JS show stars only inside one div