0
votes

Can anyone help me update a Recurring Event SERIES without getting the error 400 for location: alt that I'm getting below?

When I try to update all recurring events via the Google Calendar API series I get the following error:

https://content.googleapis.com/calendar/v3/calendars/primary/events/_84qkagpj6oqj6b9o6gs30b9k8kr3aba28oo3cba46co42h236oq3cgpm60?alt=json400()

which contains this message:

{"error":
  {"errors":
  [{
   "domain":"global",
   "reason":"invalidAltValue",
   "message":"Unknown output format: json 400",
   "locationType":"parameter",
   "location":"alt"
  }],
  "code":400,
  "message":"Unknown output format: json 400"
  }
}

Call triggering error:

var recurringEvent = {
  'summary': 'Google I/O 2015',
  'location': '800 Howard St., San Francisco, CA 94103',
  'description': 'A chance to hear more about Google\'s developer products.',
  'start': {
    'dateTime': '2017-05-28T09:00:00-07:00',
    'timeZone': 'America/Los_Angeles'
  },
  'end': {
    'dateTime': '2017-05-28T17:00:00-07:00',
    'timeZone': 'America/Los_Angeles'
  },
  'recurrence': [
    'RRULE:FREQ=WEEKLY;INTERVAL=1;UNTIL=2017-06-06T03:59:59.000Z'
  ]
};

var eventId = this.props.user.calendarEventRecurringEventId;  // POSSIBLY THE ISSUE: I use the Recurring Event Id here because I am trying to update all events in the series rather than the individual event.
this.updateEvent(recurringEvent, eventId);
1

1 Answers

0
votes

Error invalidAltValue means that the alt parameter value specifies an unknown output format. And that the value for the alt URL parameter was not recognized.

I have tried your code and I got no error.

enter image description here