calcom / cal.com

Scheduling infrastructure for absolutely everyone.
https://cal.com
Other
29.73k stars 6.97k forks source link

Unhandled error of type 'object'. Please reach out for our customer support. #14590

Open olawalejuwonm opened 2 months ago

olawalejuwonm commented 2 months ago

Found a bug? Please fill out the sections below. πŸ‘

Issue Summary

A summary of the issue. This needs to be a clear detailed-rich summary. Getting the error above when using Zoho Calendar on an event type

Steps to Reproduce

1.Create an event Type

  1. Connect Zoho Calendar
  2. Connect Google meet
  3. Try to book using the API

Any other relevant information. For example, why do you consider this a bug and what did you expect to happen instead?

Actual Results

Expected Results

I'm using the API reference

Evidence

dosubot[bot] commented 2 months ago

To address the "Unhandled error of type 'object'" issue you're encountering with Zoho Calendar and Google Meet integration, follow these targeted steps:

  1. Ensure Proper Error Handling: Wrap all API calls, especially those to Zoho and Google APIs, in try-catch blocks to catch and handle errors effectively.

  2. Verify API Responses: Always check the status code and error messages in API responses to ensure operations are successful before proceeding.

  3. Google Meet Integration: When creating events with Google Meet conferencing via the Google Calendar API, make sure to use the conferenceData field correctly and set the conferenceDataVersion query parameter to 1.

  4. OAuth Scopes: Confirm that your OAuth scopes include permissions for both reading and writing calendar events and managing Google Meet conference data.

  5. Enhance Debugging: Increase logging around the integration points with Google Meet and Zoho Calendar to pinpoint the source of errors.

  6. Correct Response and Error Parsing: Ensure you're handling and parsing errors and responses correctly, checking for the right data types and structures.

In the context of cal.com, errors of type HttpException are handled in a specific manner, as detailed in the apps/api/v2/src/filters/http-exception.filter.ts file. This involves logging error details and sending a structured response back to the client. Similarly, ZodExceptionFilter is used for handling Zod validation errors, providing a consistent and informative error response for API calls. These mechanisms could be relevant depending on the specifics of your integration and the nature of the errors encountered.

By following these steps, you should be able to resolve the error and ensure that Google Meet details are correctly included in your calendar events without encountering unhandled exceptions.

Sources

#### About Dosu This response is meant to be useful and save you time. It is **not meant to be a precise solution**, but rather a starting point for your own research. Help me be more useful! Please leave a πŸ‘ if this is helpful and πŸ‘Ž if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot.