Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
olawalejuwonm opened this issue Apr 15, 2024 · 1 comment
Labels
api area: API, enterprise API, access token, OAuth 馃悰 bug Something isn't working calendar-apps area: calendar, google calendar, outlook, lark, microsoft 365, apple calendar Medium priority Created by Linear-GitHub Sync

Comments

@olawalejuwonm
Copy link

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
2. Connect Zoho Calendar
3. Connect Google meet
4. 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

  • What's happening right now that is different from what is expected
    It just throw Unhandled error of type 'object'. Please reach out for our customer support.

Expected Results

  • This is an ideal result that the system should get after the tests are performed
    It should include the google meet calendar in the email and not throw the error

Technical details

  • Browser version, screen recording, console logs, network requests: You can make a recording with Bird Eats Bug.
  • Node.js version
  • Anything else that you think could be an issue.

I'm using the API reference

Evidence

  • How was this tested? This is quite mandatory in terms of bugs. Providing evidence of your testing with screenshots or/and videos is an amazing way to prove the bug and a troubleshooting chance to find the solution.
    Tested through the api and this is the response
    image
Copy link

dosubot bot commented Apr 15, 2024

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.

@dosubot dosubot bot added api area: API, enterprise API, access token, OAuth calendar-apps area: calendar, google calendar, outlook, lark, microsoft 365, apple calendar emails area: emails, cancellation email, reschedule email, inbox, spam folder, not getting email 馃悰 bug Something isn't working labels Apr 15, 2024
@keithwillcode keithwillcode removed the emails area: emails, cancellation email, reschedule email, inbox, spam folder, not getting email label Apr 16, 2024
@ciaranha ciaranha added the Medium priority Created by Linear-GitHub Sync label May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api area: API, enterprise API, access token, OAuth 馃悰 bug Something isn't working calendar-apps area: calendar, google calendar, outlook, lark, microsoft 365, apple calendar Medium priority Created by Linear-GitHub Sync
Projects
None yet
Development

No branches or pull requests

3 participants