728x90
heroku error code=H18 desc="Server Request Interrupted" ㅎㅐ결하기
해당에러는 파일을 req/res 로 주고 받을때 응답이 완료되기 전에 주고받는 데이터가 사라졌을때 발생하는 에러이다.
어떻게 해결해야 할까...
우선 heroku 에서의 공식 답변은 이렇다
Resolution
The H18 error is similar to the H13 in that both signify that the socket was destroyed before a response was completed. With an H13, the socket was connected, then destroyed without sending any data. An H18 signifies that the socket connected, some data was sent as part of a response by the app, but then the socket was destroyed without completing the response.
Usually, an H18 indicates that a response has multiple stages - for instance, streaming chunks of a large response - and that one of those stages has thrown an error.
To find the error, first check your logs for stack traces near the H18. If you see none, you'll need to look more closely at the handlers for the specific request that's failing. Logging each step of the response, including the x-request-id header, can help.
결국은 어디서 데이터가 사라지는지 잘 로깅해봐....
--> 이건 진짜 어딘가 응답이 손실이 일어난 것이다. 나같은 경우는 토큰 값이 제대로 전달되지 않았고 보니까
클라이언트에서 토큰값을 헤더에 담아주지 않더라 ㅎㅎ
728x90
'TIL(Today I Learned)' 카테고리의 다른 글
TIL_210103 (0) | 2021.01.03 |
---|---|
TIL_210102 (0) | 2021.01.02 |
TIL_201209 (0) | 2020.12.09 |
201204_TIL (0) | 2020.12.04 |
201203_TIL (0) | 2020.12.03 |