sktston / aries-cloudagent-python

Hyperledger Aries Cloud Agent Python (ACA-Py) is a foundation for building decentralized identity applications and services running in non-mobile environments.

Home Page:https://wiki.hyperledger.org/display/aries

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error issue when creating a credential definition

baegjae opened this issue · comments

플랫폼 상황에서 credential definition을 생성할 때 10% 정도의 확률로 error 가 발생함.
(로컬에서 aca-py를 띄우고 테스트할 때는 이런 현상 없음)

가능한 문제 요인을 모두 배제해 가며 원인 분석 중

  • elastic APM disable
  • readiness, liveness disable
  • revocation disable
  • set ledger-keepalive 30
  • continue...

원인은 backend에서 https://github.com/sktston/ston-console-backend/pull/128 에서,
okHttpClient의 timeout이 default 값이 15초로 설정되어 있어서,
credential definition을 생성하는 시간이 15초가 넘어가는 경우,
backend에서 request를 취소하기 때문에 발생하는 것 이었음.

https://github.com/sktston/ston-console-backend/pull/131 로 해결하였음.