Unexpected end of JSON input error in MVC architecture exercises

Hello I am currently in the fullstack path and I am in the mvc architecture section. Here is a link to the project: https://www.codecademy.com/article/mvc-architecture-for-full-stack-app

I finished the tutorial but when I run the application I get this error:

Here is my code where the error happens:

export const fetchExpenses = async (date) => {
  const selectDate = new Date(date).getTime() || new Date().getTime();
  const res = await fetch(`/api/expense/list/${selectDate}`);

   return res.json();
  
};

It seems the return res.json() is causing the error but I am not sure why. I checked the solution code and it is exactly the same way they have it. Any ideas why this is happening? Any help is appreciated. Thank you and happy coding :slight_smile: