---
title: "Comment by Rhys Davies on \"Build a REST API with Node.js: Finalizing Controllers\" | Hashnode"
description: "I&#39;m trying to follow along and loving the series, very well written and well explained. Thank you Victoria Lo :) But I&#39;m running into an issue at the &q"
url: "https://hashnode.com/posts/build-rest-api-with-nodejs-controllers/5f2b6a5f3dddda50802a8e5a/comment/600328f87b30c23b714a9252"
---

[Discussion](https://hashnode.com/posts/build-rest-api-with-nodejs-controllers/5f2b6a5f3dddda50802a8e5a)

Comment [Build a REST API with Node.js: Finalizing Controllers](https://hashnode.com/posts/build-rest-api-with-nodejs-controllers/5f2b6a5f3dddda50802a8e5a)

[Rhys Davies](https://hashnode.com/@rhys-the-davies)

[Jan 16, 2021](https://hashnode.com/posts/build-rest-api-with-nodejs-controllers/5f2b6a5f3dddda50802a8e5a/comment/600328f87b30c23b714a9252)

I'm trying to follow along and loving the series, very well written and well explained. Thank you [Victoria Lo](https://hashnode.com/@victoria) :) But I'm running into an issue at the "Testing with POSTman" step.

Everything works up until this point except when I hit "send" in postman it throws me a ValidationError saying "path 'name' is required' in the form. When in fact, it's there. While trying to debug I found that the database and postman are connected correctly because if I set a default name it sends to Mongo no problem. But if the entry is not already given in schema in the "models" folder it doesn't send. Everything else works up to this point but I can't find my problem :( Any ideas?

[Victoria Lo](https://hashnode.com/@victoria)

[Jan 17, 2021](https://hashnode.com/posts/build-rest-api-with-nodejs-controllers/5f2b6a5f3dddda50802a8e5a/comment/600328f87b30c23b714a9252#reply-6003963d7b30c23b714a96a2)

Hi [Rhys Davies](https://hashnode.com/@Tinkererbell), thanks for the question. Which method were you having issues with? GET POST or DELETE?

First, try to check the URL you've supplied on POSTman. Did you pass in a name as params? Like `[localhost/tea/<tea-name>](http://localhost:3000/tea/%3Ctea-name%3E)`?

Please check the code too.

```
let name = req.params.name; // is correct
// some may wrote as req.body.name, which is incorrect
```

You can also try StackOverflow if all else fails: [stackoverflow.com/questions/58671337/postman-erro…](https://stackoverflow.com/questions/58671337/postman-error-validationerror-username-path-username-is-required)

[Atul](https://hashnode.com/@Atul07)

[Jan 26, 2022](https://hashnode.com/posts/build-rest-api-with-nodejs-controllers/5f2b6a5f3dddda50802a8e5a/comment/600328f87b30c23b714a9252#reply-61f0e39687fd2728e7cd4c49)

I am also facing this error for POST. newTea function is not working. It fails with error: "Tea validation failed: name: Path `name` is required."

Despite 'name' field is present in 'body' as 'form data' [Victoria Lo](https://hashnode.com/@victoria)
