Giter Club home page Giter Club logo

Comments (8)

davepar avatar davepar commented on August 12, 2024 1

Should be fixed now for the optional fields, description, location, and guests.

I'm going to close this issue for the time being. Re-open or start a new issue if this error continues to be a problem.

from gcalendarsync.

heymeee avatar heymeee commented on August 12, 2024

any help more than welcome please
i can t synch anymore from sheet to cal

from gcalendarsync.

davepar avatar davepar commented on August 12, 2024

Sorry for the delay. Somebody else proposed a code change that will update changed events instead of deleting and adding them again. That would cut down on the number of adds and deletes and maybe fix the issue. I'll take a look at that.

from gcalendarsync.

heymeee avatar heymeee commented on August 12, 2024

ho hello
thank you so much, it s what i m trying to figure out too ;)
where can i find this code change ?
have nice day Dave

from gcalendarsync.

martindafonte avatar martindafonte commented on August 12, 2024

Hi @heymeee, let's move the discussion from the PR.

I tried adding multipple events with invites, and I found the limit that google allows is lower than the limit for events with out invites. I also found out that once you get the message it will appear more often on the same day.

A problem with the script, as it is now, is that if you get an error on the 100th event the Ids of the previous 99 are not saved to the sheet, so if you run the script again you will get an duplicate events.

I managed to insert 25 events with two invites each before getting the error message. Maybe the script can insert in batchs of 20 events, save to the sheet, wait one second and continue.

from gcalendarsync.

bradenmacdonald avatar bradenmacdonald commented on August 12, 2024

I found a bug that was triggering this error for me: If you're not using the guests functionality, then in eventMatches, the check convertedCalEvent.guests == sev.guests will always return false, because the former is "" but the latter is undefined, and "" == undefined evaluates to false in Javascript.

This bug causes the code to think that every row has changed, and updateEvent will make multiple unnecessary API calls per event, in rapid succession.

from gcalendarsync.

martindafonte avatar martindafonte commented on August 12, 2024

Hi @bradenmacdonald, great you could find the error. Maybe you could make a PR with the bugfix.

from gcalendarsync.

davepar avatar davepar commented on August 12, 2024

Nice find. I can take a look at it. I think the same thing would happen with the description field. Most people would probably include it in the spreadsheet, but it's not required.

from gcalendarsync.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.