ZCServerException Caused by : UnAuthorized

ZCServerException Caused by : UnAuthorized

I am following up the catalyst tutorial of creating a todo application - todo app. I am using java for the server and react for frontend. Having followed all instructions as instructed, I have built the app. While testing the application with catalyst serve, I get this exception :

[SEVERE] : Jun 05, 2024 10:14:11 AM ToDoList runner
SEVERE: Exception in Main
com.zc.exception.ZCServerException. Caused by : UnAuthorized
        at com.zc.api.APIResponse.setHttpStatusCode(APIResponse.java:47)
        at com.zc.api.APIResponse.<init>(APIResponse.java:30)
        at com.zc.api.APIRequest.getResponse(APIRequest.java:394)
        at com.zc.component.zcql.ZCQLService.executeZCQLQuery(ZCQLService.java:71)
        at com.zc.component.zcql.ZCQL.executeQuery(ZCQL.java:39)
        at ToDoList.runner(ToDoList.java:46)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at com.cop.main.server.AdvancedIOFlavour.invokeMethod(AdvancedIOFlavour.java:30)
        at com.cop.main.server.FunctionFlavourHandler.executeFunction(FunctionFlavourHandler.java:96) 
        at com.cop.main.server.ServletHandler.handleFunction(ServletHandler.java:215)
        at com.cop.main.server.ServletHandler.doPost(ServletHandler.java:83)
        at com.cop.main.server.ServletHandler.doGet(ServletHandler.java:134)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:848)
        at org.eclipse.jetty.servlet.ServletHandl

>>>
I presume its something to do with authorization coz following the stack trace to my java class line 46, here is the code. 
  1. Integer totalTodos = Integer  
                                    .parseInt(ZCQL.getInstance().executeQuery("SELECT COUNT(ROWID) FROM TodoItems").get(0)
                                    .get("TodoItems", "ROWID").toString());
           

What could be the issue? Help me out. 
    • Announcements

    • React Nexus 2025 Recap: Catalyst Slate in Action!

      Hey Catalyst Community! We recently attended the React Nexus 2025 conference, an exciting gathering for frontend enthusiasts and React developers. Our team had an incredible time presenting and conducting a hands-on workshop on Catalyst Slate, our streamlined
    • [Webinar] A hands-on guide to Catalyst Stratus

      Have you used Catalyst Stratus yet? It’s an object storage service that makes it easy to handle large files — whether they're coming from your Catalyst app or other Zoho apps. We’re hosting a live coding session where you’ll build a working prototype
    • Catalyst Video Tutorials!

      Hello everyone! We’ve been brewing something exciting behind the scenes, and we’re thrilled to finally share it with you- Catalyst video tutorials are here! We recognized that videos are the predominant medium for learning and discovery these days, so
    • [Webinar] Catalyst Cloud Browser in Action: PDF & Web Rendering Solutions for Regulated Industries

      Hi everyone, Have you ever struggled with rigid PDF tools or clunky rendering logic in BFSI or healthcare apps? Do your clients struggle to deliver compliant, dynamic, and automated documents — and most are still stuck with brittle, server-heavy PDF generation?
    • Announcing Catalyst Developer Bootcamps in India - Zoho Community

      Hey everyone! We're excited to announce a set of developer bootcamps dedicated to Catalyst! These bootcamps are aimed to empower developers to build, scale, and deploy applications with speed and precision, using Catalyst. Whether you're a newcomer or

      Catalyst Community