Error 400(Bad request)

I got Error 400(Bad request) and i just get started so I don’t know what should I do to solve this problem i working on ubuntu i don’t think it’s a bug from ubuntu but i want to tell u just for make sure there is any problem from using ubuntu

This is my code

exports.createScream = functions.https.onRequest((req, res) => {
  const newScream = {
    body: req.body.body,
    userHandle: req.body.userHandle,
    createAt: admin.firestore.Timestamp.fromDate(new Date()),

      .then((doc) => {
        res.json({message: `document ${} created successfully`});
      .catch((err) => {
        res.status(500).json({error: "something went wrong"});

and this is my error

and this for my header

i already check the url and clear the cache i don’t know how should i do next

1 Like

Hi @ninacko

Is there any documentation for this endpoint?
What should the request look like? is it missing anything like auth?

1 Like

Damn I’m really dumb I think I already change It to post, so I don’t recheck it thank bud you so kind

1 Like