Simplify conferenceData and add debug logging
- Remove conferenceSolutionKey entirely - let Google auto-select Meet - Add console.log to see event data being sent - Add response status logging for debugging
This commit is contained in:
@@ -210,15 +210,12 @@ serve(async (req: Request): Promise<Response> => {
|
|||||||
conferenceData: {
|
conferenceData: {
|
||||||
createRequest: {
|
createRequest: {
|
||||||
requestId: body.slot_id,
|
requestId: body.slot_id,
|
||||||
conferenceSolutionKey: {
|
|
||||||
type: "event",
|
|
||||||
name: "hangoutsMeet"
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
console.log("Creating event in calendar:", calendarId);
|
console.log("Creating event in calendar:", calendarId);
|
||||||
|
console.log("Event data:", JSON.stringify(eventData, null, 2));
|
||||||
|
|
||||||
// Create event via Google Calendar API
|
// Create event via Google Calendar API
|
||||||
const calendarResponse = await fetch(
|
const calendarResponse = await fetch(
|
||||||
@@ -233,6 +230,8 @@ serve(async (req: Request): Promise<Response> => {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
console.log("Calendar API response status:", calendarResponse.status);
|
||||||
|
|
||||||
if (!calendarResponse.ok) {
|
if (!calendarResponse.ok) {
|
||||||
const errorText = await calendarResponse.text();
|
const errorText = await calendarResponse.text();
|
||||||
console.error("Google Calendar API error:", errorText);
|
console.error("Google Calendar API error:", errorText);
|
||||||
|
|||||||
Reference in New Issue
Block a user