Usually the «4834: Invalid Ticket Id» means that you send your API request to a wrong Zoho data center.
Zoho CRM as a true Indian software has a poor architecture, so do not wonder “Why should I remember my Zoho data center, and why Zoho CRM is unable to detect the data center from my credentials, and to route my API requests to the right data center automatically?” and just correct your code.
Please note that Zoro CRM team loves to change their data center URLs from time to time (of course, with permanent smiling on their profile pictures) and to break your integrations, e.g.:
https://forums.zoho.com/topic/important-announcement-to-european-customers-who-are-on-our-eu-server