Strange Behavior - User Management

Hey guys.

After making the appropriate changes, and also passing the tests, I still get 500 status, but no errors at the [http://localhost:500/status]

The [UsersDAO.addUser] and [UsersDAO.getUser] methods should work just like in the tests, but the function falls into “CATCH” without errors.

Here is the add and getUser method, anyway, I left the repository link, where it also has the branch: [CHAPTER-2-User-Management] if you want to take a look.

Github Repo: Link

Hi @Jefferson_Mauricio, welcome to the community.
I don’t think the execution context will switch to catch block if there is no error.

I’d recommend you to run this server in debug mode and you will be able to analyze where is the function failing in executing. Learn more about debugging Node.js apps in VS Code.

In case you have any doubts, please feel free to reach out to us.

Thanks and Regards.
Sourabh Bagrecha,
Curriculum Services Engineer