1
의 시간을 증가하는 방법 : 리스너 서비스가 성공적으로 URL의 유효성을 검사하는 경우내가 단계 아래 수행 할 필요가 마이크로 소프트 <a href="https://msdn.microsoft.com/en-us/office/office365/api/notify-rest-operations" rel="nofollow noreferrer">Document</a>에 따르면 사무실 365 푸시 알림 웹 후크 검증
이, 그것은 5 초 이내에 성공 응답을 반환
- 응답 헤더 totext \ plain에 콘텐츠 유형을 설정합니다.
- 응답 본문에 동일한 유효성 검사 토큰을 포함합니다.
- HTTP 200 응답 코드를 반환합니다. 청취자는 이후에 유효성 검사 토큰을 무시할 수 있습니다.
내 enpoint은 다음과 같이이다 :
@app.route('/outlook/push', methods=['POST'])
def outlook_push():
return (request.args.get('validationtoken'), 200, {'Content-Type': 'plain/text'})
하지만 exceeds
시간 limit(5s)
나는 점점 오전 같은 오류 :
{'error': {'code': 'ErrorInvalidParameter', 'message': "Notification URL 'https://5cbae04e.ngrok.io/outlook/push?validationtoken=NmIzZDJiMTMtZjhmNy00ZWMwLTg1MDctNDQwMDQ0OWM2NmE1' verification failed 'System.Net.WebException: The operation has timed out\r\n at System.Net.HttpWebRequest.GetResponse()\r\n at Microsoft.Exchange.OData.Model.Notifications.PushNotification.PushSubscriptionCallbackUrlValidationHelper.SendRequestAndVerifyResponse(Uri callbackUrl, PushSubscription pushSubscription)'."}}
어쨌든 거기 시간 제한을 늘리려면?