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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not insert event with Bad request #1628

Open
dmytr0 opened this issue Nov 10, 2020 · 1 comment
Open

Could not insert event with Bad request #1628

dmytr0 opened this issue Nov 10, 2020 · 1 comment
Labels
priority: p4 type: question Request for information or clarification. Not an issue.

Comments

@dmytr0
Copy link

dmytr0 commented Nov 10, 2020

I want to create Event in calendar with such code

         Event event = new Event()
                .setSummary("Vacation from app")
                .setLocation("800 Howard St., San Francisco, CA 94103")
                .setDescription("A chance to hear more about Google's developer products.");
    DateTime startDateTime =  new DateTime("2020-11-10T00:20:50.52Z");;
    EventDateTime start = new EventDateTime()
            .setDate(startDateTime)
            .setTimeZone("Europe/Kiev");
    event.setStart(start);
    DateTime endDateTime = new DateTime("2020-11-10T23:20:50.52Z");
    EventDateTime end = new EventDateTime()
            .setDate(endDateTime)
            .setTimeZone("Europe/Kiev");
    event.setEndTimeUnspecified(true);
    event.setEnd(end);
    googleCalendar.events()
            .insert(calendarId, event)
            .execute();`

But receive a response

{ "code" : 400, "errors" : [ { "domain" : "global", "message" : "Bad Request", "reason" : "badRequest" } ], "message" : "Bad Request" }

From this message I really do not understand which data is bad...

@yoshi-automation yoshi-automation added triage me I really want to be triaged. 🚨 This issue needs some love. labels Nov 11, 2020
@chingor13 chingor13 added the type: question Request for information or clarification. Not an issue. label Nov 17, 2020
@yoshi-automation yoshi-automation removed 🚨 This issue needs some love. triage me I really want to be triaged. labels Nov 17, 2020
@dahool
Copy link

dahool commented Oct 23, 2023

great support.

3 years later and I'm facing the same error.

@dmytr0 I'm guessing you haven't found the reason for it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p4 type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

5 participants