Error "Missing attendee email" when trying to create an event in google calendar #6186
Replies: 1 comment
-
Hey there, @SuperKa3a! I'm here to help you with your technical issues and questions. Let's figure this out together. To resolve the "Missing attendee email" error, you need to ensure that the "attendees" block is correctly structured without the extra "rest" nesting. This issue likely arises from how attendees are being mapped in the private getAttendees = (event: CalendarEvent) => {
const eventAttendees = event.attendees.map(({ id: _id, ...rest }) => ({
...rest,
responseStatus: "accepted",
}));
// ...
}; Make sure that the Additionally, ensure that the private translateAttendees = (event: CalendarEvent): FeishuEventAttendee[] => {
const attendeeArray: FeishuEventAttendee[] = [];
event.attendees
.filter((att) => att.email)
.forEach((att) => {
const attendee: FeishuEventAttendee = {
type: "third_party",
is_optional: false,
third_party_email: att.email,
};
attendeeArray.push(attendee);
});
// ...
return attendeeArray;
}; Adjust the structure of the To continue talking to Dosu, mention @dosu. Written by @dosu, approved by dosu-customer-success |
Beta Was this translation helpful? Give feedback.
-
I installed cal.com via docker.
Problem
Error "Missing attendee email" when trying to create an event in google calendar
Background
I set up the Google Calendar integration as written here: https://github.com/calcom/cal.com#obtaining-the-google-api-credentials.
After that, the application appeared in the list of all applications and I added it.
Now when I try to book an appointment, I get an error in the logs: "There was an error contacting google calendar service: GaxiosError: Missing attendee email."
I took the request being sent to the google api, compared it with what is expected and realized that when sending, an extra "rest" nesting is generated in the "attendees" block:
https://pastebin.com/raw/5TESLGnh
When i repeated the given request in Postman i got the same error, but when i removed the "rest" block, the request became successful and the event was successfully added to the calendar.
I tried to carry out the same steps on the main site, but everything works correctly there
Question
Tell me, has anyone experienced this? What can be done in this case?
Beta Was this translation helpful? Give feedback.
All reactions