ImageManager - 12월 12일

yshjft·2022년 12월 11일
0

ImageManager

목록 보기
2/3

기록

com.amazonaws.util.EC2MetadataUtils : Unable to retrieve the requested metadata (/latest/meta-data/instance-id). Failed to connect to service endpoint: ~~

  • warn
  • EC2MetadataUtils.getData() 호출시 EC2 환경이 아닌 경우 발생하는 warning이다.
  • 해결 방법 참고

S3 업로더 테스트 코드 작성

RequestBody & RequestPart

  • Swagger에서 이미지 쉽게 올리려고 RequestPart를 사용하였다.
  • 하지만 RequestBody와 RequestPart는 함께 사용할 수 없다.
    • 이미지를 업로드할 경우 Json parse에 문제가 생긴다.
org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Unexpected character ('-' (code 45)) in numeric value: expected digit (0-9) to follow minus sign, for valid numeric value; nested exception is com.fasterxml.jackson.core.JsonParseException: Unexpected character ('-' (code 45)) in numeric value: expected digit (0-9) to follow minus sign, for valid numeric value
profile
꾸준히 나아가자 🐢

0개의 댓글