TTMSFMXCloudGCalendar works only with one account

Hello,


I made a program which creates items in a Google Calendar.

It worked for me so I sent it to the customer who tried with 3 different Google accounts without success.

Then I also tried on my developer computer with other Google accounts:
  • It works with one but not with others on the same computer
  • The program doesn't give any error message just the calendar items don't appear
  • I downloaded the latest component pack but it didn't change
Code:

var
  ci             : TGCalendarItem;
Begin

  ci := AktivCloudGCalendar.Items.Add;
  with ci do
   begin
      StartTime := IR.StartTime;
      EndTime   := IR.EndTime;

      Summary         := IR.Summary;
      Description     := IR.Description;
      Location        := IR.Location;
      CalendarID      := IR.CalendarID;

      Color           := TGItemColor(IR.Color);
      IsAllDay        := IR.IsAllDay;

      AktivCloudGCalendar.Add(ci);

      Result := ID;
   end;

End;



What can cause this? Thank you.

Hi,


I'm not sure what could be causing this issue.
Can you please enable logging to see if any error messages are logged?

Logging can be enabled by setting Logging to True and LogLevel to llDetail.
The LOG file is generated in the machine's Documents folder.
Hi,

Thank you very much for the answer. I started logging.
What I noticed that I have two gmail accounts.
  • If I connect with the first account, it works (as I stated above)
  • If I connect the second, it tries to send it to the first account!
Of course I properly deleted the file which stores the log information and gave permission to the respective Google account....

The log:
20190903T152506:HTTPS POST: www.googleapis.com/calendar/v3/calendars/starhu%40gmail.com/events?key=700296401299-3c9oqmsh9c3jgg39dffesjecluf1iarf.apps.googleusercontent.com&sendNotifications=false
20190903T152506:HTTPS POST RES:404
20190903T152506:HTTPS POST RESULT:
20190903T152506:HTTPS POST: www.googleapis.com/calendar/v3/calendars/starhu%40gmail.com/events?key=700296401299-3c9oqmsh9c3jgg39dffesjecluf1iarf.apps.googleusercontent.com&sendNotifications=false
20190903T152506:HTTPS POST RES:404
20190903T152506:HTTPS POST RESULT:
20190903T152506:HTTPS POST: www.googleapis.com/calendar/v3/calendars/starhu%40gmail.com/events?key=700296401299-3c9oqmsh9c3jgg39dffesjecluf1iarf.apps.googleusercontent.com&sendNotifications=false
20190903T152506:HTTPS POST RES:404
20190903T152506:HTTPS POST RESULT:

Thank you very much!










































It looks like there is indeed an error when you try to submit a new event.
However it's not clear from the log you providied what exactly is going wrong.

Can you please confirm if you are able to retrieve calendars and/or events from the second account or if it's only when adding events that an error occurs?

Hello,


  • For the first calendar I can retrieve the calendar items
  • For the second the Items is empty.
    • The ShowMessage(AktivCloudGCalendar.Calendars[0].ID ) ; shows a very strange ID (not my email address) : 'tvsqjcfk73aaa64j3699diooik@group.calendar.google.com'
    • In the log (only) I can see some events which are not in my calendar. E.g:

    •   {
    •    "kind": "calendar#calendarListEntry",
    •    "etag": ""1566546616901000"",
    •    "id": "4omfq0c19rvslr5u4oo50qc9ag@group.calendar.google.com",
    •    "summary": "None",
    •    "timeZone": "Europe/Budapest",
    •    "colorId": "17",
    •    "backgroundColor": "#9a9cff",
    •    "foregroundColor": "#000000",
    •    "accessRole": "owner",
    •    "defaultReminders": [],
    •    "conferenceProperties": {
    •     "allowedConferenceSolutionTypes": [
    •      "eventHangout"
    •     ]
    •    }
    •   },


Can it be that it is a Google Calendar setting which modifies this?
The customer I made this program for is very anxious that it doesn't work.

Thank you!

We are not aware of such an issue in TTMSFMXCloudGCalendar and also haven't received any similar reports from other users so it is possible this issue is caused by a specific configuration of the Google account.

Can you please send the full log file along with exact steps to reproduce the issue by email (mailto:help@tmssoftware.com) so we can further investigate this issue?


Hello,


I sent an email with the log and the steps.
Thank you in advance!!