Skip to content

in edit profile, i am getting req.body is undefined #155

Description

@sc0rp10n-py

i added some values in the profile and want to edit them, so i did like in code here
https://github.com/hoangvvo/nextjs-mongodb-app/blob/v2/pages/api/user/index.js

const {quote} = req.body;

but i get this error

Cannot destructure property 'baseName' of 'req.body' as it is undefined."

even console.log(req.body) gives undefined.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions