Hi I have noticed . You have tried to use the method chaining. I found the following post on freeCodeCamp forum. It refers to the following link [Express 4.x - API Reference](https://Express method chaining).
The chained methods should be as follows.
I realize you want to return an error if req.query object is undefined. But rather try use a plain get request.
Your code is passing for me. Please post all your code, preferably in a Replit.
As an aside. In the GET handler, why are you checking the values and then hardcoding the values based on the values? That makes no sense. Whatever firstName and lastName is should be the response. Just do what you are doing in the else, the conditions are pointless.