2017-05-04 7 views
0

下記のlocation: altのエラー400が発生することなく、誰でも定期的なイベントシリーズを更新できますか?エラーをトリガJavaScript - GoogleカレンダーAPIエラー400 - 場所 "alt" - 定期的なイベントの更新シリーズ

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

コール:このメッセージが含まれてい

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

私はGoogleカレンダーのAPIシリーズを経由してすべての定期的なイベントを更新しようとすると、私は次のエラーを取得します

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); 

答えて

0

エラーinvalidAltValueは、altパラメータ値が未知の出力形式を指定していることを示します。 URLパラメータのaltの値が認識されませんでした。

私はあなたのコードを試しましたが、エラーは発生していません。

enter image description here

+0

altパラメータはどこに設定されていますか?私はどこにでも設定していないので、こちらのドキュメント(https://developers.google.com/google-apps/calendar/v3/reference/events)には表示されません。私の問題を再現するには、定期的なイベントを作成し、定期的なイベントシリーズ(繰り返しイベントの1つのインスタンスではなく、定期的なイベントに関連するすべてのイベント)を自分のコードで更新しようとします。 – Rbar

関連する問題