Deduper Resolve Errors, Exponential backoff
Remove Duplicate files in Google Drive 에 이어서 Apps script로 구글 드라이브 API를 호출하는데 구글 서버 오류가 발생하면 그냥 종료합니다. 앱 사용자가 로그 스프레드시트를 보고 중단된 이유에 따라 Find 버튼을 클릭할 수 있습니다. 서버 오류를 처리하기 위해서 ... Error GoogleJsonResponseException 다음 오류로 인해 drive.files.list API를 호출하지 못했습니다. Internal Error GoogleJsonResponseException 다음 오류로 인해 drive.parents.insert API를 호출하지 못했습니다. Backend Error 오류를 해결하기 위해서 찾아보니 Exponential backoff를 권장합니다. Resolve errors https://developers.google.com/drive/api/v2/handle-errors 500: Backend error An unexpected error occurred while processing the request. Retry failed requests to resolve errors https://developers.google.com/drive/api/v3/handle-errors#exponential-backoff You can periodically retry a failed request over an increasing amount of time to handle errors related to rate limits, network volume, or response time. For example, you might retry a failed request after one second, then after two seconds, and then after four seconds. This method, cal...