Error - Invocation failed Unexpected end of file from server

정확한 어떤 이유인지는 알수 없지만 갑자기 Git push를 할 때 Invocation failed Unexpected end of file from server 메시지가 뜨면서 commit한 내용을 올릴 수 없었습니다.

Device not configured - Intellij

Invocation failed Unexpected end of file from server 문제 해결 방법

 이 문제를 해결하는 방법은 stack overflow를 참고하였습니다. Invocation failed Unexpected end of file from server 에러가 발생하지 않게 하는 방법은 Git의 Use credential helper 옵션을 활성화 시키면 문제가 해결됩니다.

Git 옵션 - Intellij
Git Use credential helper 옵션 활성화 - Intellij

 동일한 문제로 Git push를 하지 못하는 경우 위의 이미지 내용대로 git의 Use credential helper 옵션을 활성화하시면 문제가 해결 됩니다.

Invocation failed Unexpected end of file from server
java.lang.RuntimeException: Invocation failed Unexpected end of file from server
	at git4idea.GitAppUtil.sendXmlRequest(GitAppUtil.java:30)
	at git4idea.http.GitAskPassApp.main(GitAskPassApp.java:58)
Caused by: java.net.SocketException: Unexpected end of file from server
	at java.base/sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:866)
	at java.base/sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:689)
	at java.base/sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:863)
	at java.base/sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:689)
	at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1615)
	at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1520)
	at org.apache.xmlrpc.DefaultXmlRpcTransport.sendXmlRpc(DefaultXmlRpcTransport.java:87)
	at org.apache.xmlrpc.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:72)
	at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:194)
	at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:185)
	at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:178)
	at git4idea.GitAppUtil.sendXmlRequest(GitAppUtil.java:27)
	... 1 more
error: unable to read askpass response from '/Users/yd/Library/Caches/Google/AndroidStudio2021.2/tmp/intellij-git-askpass-local.sh'
fatal: could not read Username for 'https://github.com': Device not configured
반응형

댓글(0)

Designed by JB FACTORY