2017-05-04 6 views
0

아래에있는 location: alt에 대한 오류 400없이 반복 일정 시리즈를 업데이트 할 수있는 사람이 있습니까?자바 스크립트 - Google 캘린더 API 오류 400 - 위치 "alt"- 반복 일정 업데이트 시리즈

나는 다음과 같은 오류가 구글 캘린더 API 시리즈를 통해 모든 반복 이벤트를 업데이트하려고하면 :

{"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()

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

오류 invalidAltValuealt 매개 변수 값이 알 수없는 출력 형식을 지정 함을 의미합니다. URL 매개 변수 alt의 값을 인식하지 못했습니다.

코드를 시도했지만 오류가 없습니다.

enter image description here

+0

alt 매개 변수는 어디에 설정되어 있습니까? 어디서나 설정하지 않으며 여기 (https://developers.google.com/google-apps/calendar/v3/reference/events) 문서에 표시되지 않습니다. 내 문제를 재현하려면 반복 일정을 만든 다음 반복 일정 시리즈 (반복 일정의 단일 인스턴스가 아닌 반복 일정과 관련된 모든 일정)를 내 코드로 업데이트하십시오. – Rbar