Writes Apps Script errors in this spreadsheet.

저는 Apps Script로 앱을 만듭니다.

https://www.eojji.com/app


Google Drive REST API를 사용하는데 다양한 오류가 발생합니다.

다른 분들과 공유하기 위해서 스프레드시트에 기록 중입니다.

https://docs.google.com/spreadsheets/d/1p-saNPVWm1ZTBtryYkxY8rL0wk_pQClM5xThogaHtBs/edit?usp=sharing


Writes Apps Script errors in spreadsheet.png


이 시트에 기록할 내용이 있으면 보내 주세요.
개발에 반영하겠습니다.

https://hi.eojji.com/


만약 파일 복사 API 호출에서 발생한 오류가 일시적이면 지수적 감속으로 다시 시도합니다.

  if (resp.name == 'HttpResponseException' ||
      resp.message.indexOf('Internal Error') >= 0 ||
      resp.message.indexOf('Backend Error') >= 0 ||
      resp.message.indexOf('Transient failure') >= 0 ) {
   
      copiedState.check = '-2'; // 지수적 감속


참고:

Deduper Resolve Errors, Exponential backoff
https://eojji.blogspot.com/2019/06/deduper-resolve-errors-exponential.html



Stackdriver Error Reporting


Google Apps Script에서 설정



Stackdriver Error Reporting 예외 로깅은 Google Apps Script에서 자동으로 사용 설정되며 추가 설정은 필요하지 않습니다.


이 통합에 대한 자세한 내용은 Apps Script 문서를 참조하세요.



댓글

이 블로그의 인기 게시물

Duplicate files, Deduper in Google Drive